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: 10669a,ca0d90a74bfe79d3 X-Google-Attributes: gid10669a,public X-Google-Thread: f9325,ca0d90a74bfe79d3 X-Google-Attributes: gidf9325,public X-Google-Thread: 111c93,ca0d90a74bfe79d3 X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2001-05-31 02:47:41 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: Re: num limit on socket opened using accept() ? Date: Thu, 31 May 2001 17:58:03 +0800 Organization: Singapore Telecommunications Ltd Message-ID: <9f53vs$psk$1@coco.singnet.com.sg> References: <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:2976 comp.os.linux.networking:43824 comp.protocols.tcp-ip:7569 comp.unix.programmer:12661 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" 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. > >