Bug#330105: libc6-dev: __FD_SETSIZE equals to 1024 is too small
Package: libc6-dev
Version: 2.3.5-6
Severity: normal
Tags: patch
In a web server with ore than 1000 Virtual Hosts in /var/log/apache2/error.log
could be seen multiple strings with
====================
Segmentation fault (11)
[warn] make_sock: problem listening on port 443, file descriptor (1068) larger
than FD_SETSIZE (1024)
====================
The solution is editing __FD_SETSIZE value in /usr/include/bits/typesizes.h:
from
#define __FD_SETSIZE 1024
to
#define __FD_SETSIZE 32768
(value must be much greater than current one 1024) and rebuilding apache,
sometime php,
openssl etc.
Please make default value of __FD_SETSIZE greater than now.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11.12
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Versions of packages libc6-dev depends on:
ii libc6 2.3.5-6 GNU C Library: Shared libraries
an
ii linux-kernel-headers 2.6.13+0rc3-1.1 Linux Kernel Headers for
developme
Versions of packages libc6-dev recommends:
ii gcc [c-compiler] 4:4.0.1-3 The GNU C compiler
ii gcc-4.0 [c-compiler] 4.0.1-8 The GNU C compiler
-- no debconf information
Reply to: