add debug
This commit is contained in:
parent
fbc6367586
commit
33df79312a
@ -18,7 +18,7 @@
|
||||
{max_packet_size, 16384},
|
||||
{stream_active_n, 100},
|
||||
%% 单位为秒
|
||||
{heartbeat_sec, 5}
|
||||
{heartbeat_sec, 15}
|
||||
]}
|
||||
]},
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
{max_packet_size, 16384},
|
||||
{stream_active_n, 100},
|
||||
%% 单位为秒
|
||||
{heartbeat_sec, 5}
|
||||
{heartbeat_sec, 15}
|
||||
]}
|
||||
]},
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
%% 最大包大小
|
||||
max_packet_size = 16384,
|
||||
%% 心跳间隔
|
||||
heartbeat_sec = 10,
|
||||
heartbeat_sec = 15,
|
||||
ping_timer :: undefined | reference(),
|
||||
stream_active_n = ?STREAM_ACTIVE_N,
|
||||
|
||||
@ -111,7 +111,7 @@ start_link(Conn, Limits) when is_list(Limits) ->
|
||||
%% process to initialize.
|
||||
init([Conn, Limits]) ->
|
||||
MaxPacketSize = proplists:get_value(max_packet_size, Limits, 16384),
|
||||
HeartbeatSec = proplists:get_value(heartbeat_sec, Limits, 10),
|
||||
HeartbeatSec = proplists:get_value(heartbeat_sec, Limits, 15),
|
||||
StreamActiveN = proplists:get_value(stream_active_n, Limits, ?STREAM_ACTIVE_N),
|
||||
{ok, initializing, #state{conn = Conn, max_packet_size = MaxPacketSize, heartbeat_sec = HeartbeatSec, stream_active_n = StreamActiveN}}.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user