Skip to content

Commit

Permalink
Fix 'Session Timeouted.': Change the time for checking wether all the…
Browse files Browse the repository at this point in the history
… TCP connectins are alive or not.
  • Loading branch information
hiura committed Mar 24, 2024
1 parent 56c12de commit e8c14cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cedar/Session.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ void SessionMain(SESSION *s)
UINT max_conn = s->ClientOption->MaxConnection;

if ((s->CurrentConnectionEstablishTime +
(UINT64)(s->ClientOption->AdditionalConnectionInterval * 1000 * 2 + CONNECTING_TIMEOUT * 2))
(UINT64)(num_tcp_conn * s->ClientOption->AdditionalConnectionInterval * 1000 * 2 + CONNECTING_TIMEOUT * 2))
<= Tick64())
{
if (s->ClientOption->BindLocalPort != 0 || num_tcp_conn == 0)
Expand Down

0 comments on commit e8c14cb

Please sign in to comment.