[rtems-libbsd commit] rcconf02: Reduce maximum connection counts

Sebastian Huber sebh at rtems.org
Mon Mar 11 07:09:15 UTC 2019


Module:    rtems-libbsd
Branch:    master
Commit:    6427453ee811d427a702f0e6c7c349d22d1e3e95
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=6427453ee811d427a702f0e6c7c349d22d1e3e95

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Mar 11 08:08:08 2019 +0100

rcconf02: Reduce maximum connection counts

This avoids a file descriptor exhaustion.

---

 testsuite/rcconf02/test_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testsuite/rcconf02/test_main.c b/testsuite/rcconf02/test_main.c
index c3a85df..3a7b702 100644
--- a/testsuite/rcconf02/test_main.c
+++ b/testsuite/rcconf02/test_main.c
@@ -134,10 +134,10 @@ static const char* rc_conf_text =                          \
   "dhcpcd_options=\"-h foobar\"\n"                         \
   "\n"                                                     \
   "telnetd_enable=\"YES\"\n"                               \
-  "telnetd_options=\"-v -C 10 -P 50 -L\"\n"                \
+  "telnetd_options=\"-v -C 2 -P 50 -L\"\n"                \
   "\n"                                                     \
   "ftpd_enable=\"YES\"\n"                                  \
-  "ftpd_options=\"-v -p 21 -C 10 -P 150 -L -I 10 -R /\"\n" \
+  "ftpd_options=\"-v -p 21 -C 2 -P 150 -L -I 10 -R /\"\n" \
   "\n"                                                     \
   "pf_enable=\"YES\"\n"                                    \
   "pf_rules=\"/etc/mypf.conf\"\n"                          \




More information about the vc mailing list