From a9269ed83d0e5dad1deff8d53a2c3972bd786e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=98=82?= <15606216810@163.com> Date: Mon, 8 Aug 2022 08:59:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=BB=98=E8=AE=A4=E7=9A=84st?= =?UTF-8?q?ack=5Fconfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/stack_config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/stack_config.h b/config/stack_config.h index bf89d264..c92d18e1 100644 --- a/config/stack_config.h +++ b/config/stack_config.h @@ -51,7 +51,7 @@ #define CONFIG_MMS_THREADLESS_STACK 0 /* number of concurrent MMS client connections the server accepts, -1 for no limit */ -#define CONFIG_MAXIMUM_TCP_CLIENT_CONNECTIONS 100 +#define CONFIG_MAXIMUM_TCP_CLIENT_CONNECTIONS -1 /* set socket buffer size. 1 -> enable */ #define CONFIG_SET_SOCKET_BUFSIZE 0 @@ -66,10 +66,10 @@ #define CONFIG_ACTIVATE_TCP_KEEPALIVE 1 /* time (in s) between last message and first keepalive message */ -#define CONFIG_TCP_KEEPALIVE_IDLE 5 +#define CONFIG_TCP_KEEPALIVE_IDLE 20 /* time between subsequent keepalive messages if no ack received */ -#define CONFIG_TCP_KEEPALIVE_INTERVAL 2 +#define CONFIG_TCP_KEEPALIVE_INTERVAL 5 /* number of not missing keepalive responses until socket is considered dead */ #define CONFIG_TCP_KEEPALIVE_CNT 2