From e8c14cba68f89e2ef226cf2756acfafc84d98190 Mon Sep 17 00:00:00 2001 From: hiura Date: Sun, 24 Mar 2024 19:11:24 +0900 Subject: [PATCH] Fix 'Session Timeouted.': Change the time for checking wether all the TCP connectins are alive or not. --- src/Cedar/Session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cedar/Session.c b/src/Cedar/Session.c index 00a9e817..e0bb58a6 100644 --- a/src/Cedar/Session.c +++ b/src/Cedar/Session.c @@ -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)