add debug

This commit is contained in:
anlicheng 2026-04-27 17:15:43 +08:00
parent fbc6367586
commit 33df79312a
3 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@
{max_packet_size, 16384},
{stream_active_n, 100},
%% 单位为秒
{heartbeat_sec, 5}
{heartbeat_sec, 15}
]}
]},

View File

@ -18,7 +18,7 @@
{max_packet_size, 16384},
{stream_active_n, 100},
%% 单位为秒
{heartbeat_sec, 5}
{heartbeat_sec, 15}
]}
]},

View File

@ -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}}.