]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commitdiff
patches: Add patch to increase 'FD_SETSIZE'
authorCezar Craciunoiu <cezar.craciunoiu@gmail.com>
Thu, 20 Oct 2022 08:18:37 +0000 (11:18 +0300)
committerUnikraft <monkey@unikraft.io>
Wed, 9 Nov 2022 07:55:27 +0000 (07:55 +0000)
Change needed by lwip to increase the number of connections past 57.

Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@gmail.com>
Reviewed-by: Sergiu Moga <sergiu.moga@protonmail.com>
Approved-by: Marc Rittinghaus <marc.rittinghaus@kit.edu>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #24

patches/0013-newlib-libc-Increase-FD_SETSIZE-limit.patch [new file with mode: 0644]

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 (file)
index 0000000..b8f9a52
--- /dev/null
@@ -0,0 +1,26 @@
+From c5ce452eceb022923f409b3156723e18f49253b9 Mon Sep 17 00:00:00 2001
+From: Cezar Craciunoiu <cezar.craciunoiu@gmail.com>
+Date: Thu, 29 Sep 2022 17:21:45 +0300
+Subject: [PATCH] newlib/libc: Increase 'FD_SETSIZE' limit
+
+Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@gmail.com>
+---
+ 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
+