Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Nithyanandham <m.nithyanandham@blr.spcnl.co.in>
Subject: Re: num limit on socket opened using accept() ?
Date: Thu, 31 May 2001 14:50:37 +0530	[thread overview]
Message-ID: <3B160CE5.8845F2A1@blr.spcnl.co.in> (raw)
In-Reply-To: 9f50l7$phe$1@coco.singnet.com.sg



jstwo wrote:

> 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)?

Do "ulimit -a " to know the maximum number of fd allowed .
You can change this using setrlimit( ).

Remember that the maximum number of fd per user per process is different from
the
maximum number of fd for the whole system.

--Nithyanand.
  Siemens, Bangalore, India.



  reply	other threads:[~2001-05-31  9:20 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 [this message]
2001-05-31  9:35   ` jstwo
2001-05-31  9:55     ` Nithyanandham
2001-05-31  9:58 ` jstwo
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