From de2e7d37dc47ee3d5f84e60098f992266cba4de1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E5=AD=99=E6=98=A5=E9=98=B3?= Date: Thu, 12 Jun 2025 10:19:35 +0800 Subject: [PATCH] =?utf8?q?=E6=B7=BB=E5=8A=A0socket=20poll=20select=20?= =?utf8?q?=E5=87=BD=E6=95=B0=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../port/lwip-2.1/porting/include/lwip/lwipopts.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/code/sdk/open_source/openharmony/third_party/lwip/port/lwip-2.1/porting/include/lwip/lwipopts.h b/code/sdk/open_source/openharmony/third_party/lwip/port/lwip-2.1/porting/include/lwip/lwipopts.h index 4a360d9bc..71af562d3 100644 --- a/code/sdk/open_source/openharmony/third_party/lwip/port/lwip-2.1/porting/include/lwip/lwipopts.h +++ b/code/sdk/open_source/openharmony/third_party/lwip/port/lwip-2.1/porting/include/lwip/lwipopts.h @@ -86,12 +86,13 @@ // Options only in new opt.h -#define LWIP_SOCKET_SELECT 0 +#define LWIP_SOCKET_SELECT 1 #define LWIP_SOCKET_POLL 1 - +#define LWIP_SOCKET_SELECT_FUNC +#define LWIP_SOCKET_POLL_FUNC // Options for old lwipopts.h -#define MEM_SIZE (4*1024*1024) // (512*1024) +#define MEM_SIZE (512*1024) // (4*1024*1024) // (512*1024) #define IP_FRAG_MAX_MTU 1500 #define LWIP_CONFIG_NUM_SOCKETS 128 #define IP_REASS_MAX_MEM_SIZE (MEM_SIZE / 4) @@ -253,8 +254,8 @@ // #undef LWIP_IPV6 // #define LWIP_IPV6 0 -#undef LWIP_SOCKET_SELECT -#define LWIP_SOCKET_SELECT 1 +// #undef LWIP_SOCKET_SELECT +// #define LWIP_SOCKET_SELECT 1 /* MIB2 stats are required to check IPv4 reassembly results */ -- 2.17.1