From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,ca0d90a74bfe79d3,start X-Google-Attributes: gidfc89c,public X-Google-Thread: 111c93,ca0d90a74bfe79d3,start X-Google-Attributes: gid111c93,public X-Google-Thread: 10669a,ca0d90a74bfe79d3,start X-Google-Attributes: gid10669a,public X-Google-Thread: f9325,ca0d90a74bfe79d3,start X-Google-Attributes: gidf9325,public X-Google-ArrivalTime: 2001-05-31 01:50:48 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!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: num limit on socket opened using accept() ? Date: Thu, 31 May 2001 17:01:09 +0800 Organization: Singapore Telecommunications Ltd Message-ID: <9f50l7$phe$1@coco.singnet.com.sg> 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:2973 comp.os.linux.networking:43808 comp.protocols.tcp-ip:7566 comp.unix.programmer:12655 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.