From ccb1cd4acffa605e5647379f5de76bfca4107fdf Mon Sep 17 00:00:00 2001 From: l30044017 Date: Tue, 19 Nov 2024 11:05:53 +0800 Subject: [PATCH] FIX: modify Tcp keepalive parameters Signed-off-by: l30044017 https://gitee.com/openharmony/communication_dsoftbus/issues/IB5BL2 --- .../tcp_direct/src/client_trans_tcp_direct_manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/transmission/trans_channel/tcp_direct/src/client_trans_tcp_direct_manager.c b/sdk/transmission/trans_channel/tcp_direct/src/client_trans_tcp_direct_manager.c index 99370608b..63ba2c060 100644 --- a/sdk/transmission/trans_channel/tcp_direct/src/client_trans_tcp_direct_manager.c +++ b/sdk/transmission/trans_channel/tcp_direct/src/client_trans_tcp_direct_manager.c @@ -30,9 +30,9 @@ #include "trans_server_proxy.h" #define HEART_TIME 300 -#define TCP_KEEPALIVE_INTERVAL 2 +#define TCP_KEEPALIVE_INTERVAL 4 #define TCP_KEEPALIVE_COUNT 5 -#define USER_TIME_OUT (305 * 1000) +#define USER_TIME_OUT (320 * 1000) static SoftBusList *g_tcpDirectChannelInfoList = NULL;