From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,ca0d90a74bfe79d3 X-Google-Attributes: gid111c93,public X-Google-Thread: 10669a,ca0d90a74bfe79d3 X-Google-Attributes: gid10669a,public X-Google-Thread: fc89c,ca0d90a74bfe79d3 X-Google-Attributes: gidfc89c,public X-Google-Thread: f9325,ca0d90a74bfe79d3 X-Google-Attributes: gidf9325,public X-Google-ArrivalTime: 2001-05-31 02:24:49 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!newspeer2.clara.net!news.clara.net!feeder.singnet.com.sg!mawar.singnet.com.sg!not-for-mail From: "jstwo" 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 17:35:10 +0800 Organization: Singapore Telecommunications Ltd Message-ID: <9f52kv$ovp$1@coco.singnet.com.sg> References: <9f50l7$phe$1@coco.singnet.com.sg> <3B160CE5.8845F2A1@blr.spcnl.co.in> NNTP-Posting-Host: ad202.166.27.118.magix.com.sg X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: archiver1.google.com comp.os.linux.alpha:2975 comp.os.linux.networking:43820 comp.protocols.tcp-ip:7568 comp.unix.programmer:12659 thanks for reply. the soft limit showed using "ulimit -Sn" is 1024. to be sure , i also set it in the program to 1024. but it didnt help at all. jstwo "Nithyanandham" wrote in message news:3B160CE5.8845F2A1@blr.spcnl.co.in... > > > 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. >