From: "jstwo" <jstwo@writeme.NoSpAm.com>
Subject: Re: num limit on socket opened using accept() ?
Date: Thu, 31 May 2001 17:58:03 +0800 [thread overview]
Message-ID: <9f53vs$psk$1@coco.singnet.com.sg> (raw)
In-Reply-To: 9f50l7$phe$1@coco.singnet.com.sg
I just find a define in include/linux/limit.h from the kernel source tree:
#define OPEN_MAX 256 /* # open files a process may have */
could this be the one that cause the problem? if i change this number to
1024 ( and compile a new kernel if needed), will there any other binary be
affected ?
Regards.
jstwo
"jstwo" <jstwo@writeme.NoSpAm.com> wrote in message
news:9f50l7$phe$1@coco.singnet.com.sg...
> Hi,
>
> I am working on a network server module. when i test it with massive
> simultaneous connections, it stopped accept new connection after getting
> 240+ connections( the maximum fd num is 255). it will start accept new one
> after some old one closed. it's quite odd as the fd limit has been set to
> 1024/1024 for one process.
> I read somewhere that the problem is with the version of libc which limit
> the maximum fd to 255. Is it true and how to overcome the problem easily
> without recompile the libc hoefully)?
>
> the system config is :
> Redhat 6.2 for alpha. kernel 2.2.14. libc(glibc2) 2.1.3.
> BTW, the program is written ontop of ACE library.
>
> Thanks
>
> jstwo.
>
>
next prev parent reply other threads:[~2001-05-31 9:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-31 9:01 num limit on socket opened using accept() ? jstwo
2001-05-31 9:20 ` Nithyanandham
2001-05-31 9:35 ` jstwo
2001-05-31 9:55 ` Nithyanandham
2001-05-31 9:58 ` jstwo [this message]
2001-05-31 11:30 ` Nithyanandham
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox