From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,ca0d90a74bfe79d3 X-Google-Attributes: gidfc89c,public X-Google-Thread: 111c93,ca0d90a74bfe79d3 X-Google-Attributes: gid111c93,public X-Google-Thread: f9325,ca0d90a74bfe79d3 X-Google-Attributes: gidf9325,public X-Google-Thread: 10669a,ca0d90a74bfe79d3 X-Google-Attributes: gid10669a,public X-Google-ArrivalTime: 2001-05-31 02:15:04 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!feeder01.news.de.uu.net!newsfeed.siemens.de!news.mch.sbs.de!not-for-mail From: Nithyanandham Newsgroups: comp.os.linux.alpha,comp.os.linux.networking,comp.protocols.tcp-ip,comp.unix.programmer Subject: Re: num limit on socket opened using accept() ? Date: Thu, 31 May 2001 14:50:37 +0530 Organization: Siemens Inc. Message-ID: <3B160CE5.8845F2A1@blr.spcnl.co.in> References: <9f50l7$phe$1@coco.singnet.com.sg> NNTP-Posting-Host: 132.186.66.212 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en Xref: archiver1.google.com comp.os.linux.alpha:2974 comp.os.linux.networking:43815 comp.protocols.tcp-ip:7567 comp.unix.programmer:12658 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.