From: Cezar Craciunoiu Date: Thu, 20 Oct 2022 08:18:37 +0000 (+0300) Subject: patches: Add patch to increase 'FD_SETSIZE' X-Git-Tag: RELEASE-0.12.0~2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=45748686968a478ce87d66c8b48e6307b8a01ecf;p=unikraft%2Flibs%2Fnewlib.git patches: Add patch to increase 'FD_SETSIZE' Change needed by lwip to increase the number of connections past 57. Signed-off-by: Cezar Craciunoiu Reviewed-by: Sergiu Moga Approved-by: Marc Rittinghaus Tested-by: Unikraft CI GitHub-Pull-Request: #24 --- diff --git a/patches/0013-newlib-libc-Increase-FD_SETSIZE-limit.patch b/patches/0013-newlib-libc-Increase-FD_SETSIZE-limit.patch new file mode 100644 index 0000000..b8f9a52 --- /dev/null +++ b/patches/0013-newlib-libc-Increase-FD_SETSIZE-limit.patch @@ -0,0 +1,26 @@ +From c5ce452eceb022923f409b3156723e18f49253b9 Mon Sep 17 00:00:00 2001 +From: Cezar Craciunoiu +Date: Thu, 29 Sep 2022 17:21:45 +0300 +Subject: [PATCH] newlib/libc: Increase 'FD_SETSIZE' limit + +Signed-off-by: Cezar Craciunoiu +--- + newlib/libc/include/sys/select.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/newlib/libc/include/sys/select.h b/newlib/libc/include/sys/select.h +index f5dc586..e30e1d2 100644 +--- a/newlib/libc/include/sys/select.h ++++ b/newlib/libc/include/sys/select.h +@@ -39,7 +39,7 @@ typedef __sigset_t sigset_t; + * should be >= NOFILE (param.h). + */ + # ifndef FD_SETSIZE +-# define FD_SETSIZE 64 ++# define FD_SETSIZE 8192 + # endif + + typedef unsigned long fd_mask; +-- +2.34.1 +