home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!bir7
- From: bir7@leland.Stanford.EDU (Ross Biro)
- Subject: Re: SOMAXCONN undefined in MudOS..
- Message-ID: <1992Nov22.064700.366@leland.Stanford.EDU>
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: DSG, Stanford University, CA 94305, USA
- References: <1992Nov21.185325.20657@cs.ucla.edu> <1en2ptINN9tu@tartarus.uwa.edu.au>
- Date: Sun, 22 Nov 92 06:47:00 GMT
- Lines: 23
-
- In article <1en2ptINN9tu@tartarus.uwa.edu.au> oreillym@tartarus.uwa.edu.au (Michael O'Reilly) writes:
- >Dr Algirdas Avizienis (aviz@lanai.cs.ucla.edu) wrote:
- >: Hello! I am trying to compile MudOS 0.9 under Linux, but
- >: I've run into a problem. In the comm.c file, SOMAXCONN is
- >: undefined. It is the second argument in a call to select().
- >:
- >: What should I be replacing this with?
- >As in the number 5. :) This is a (minor) deficency in the #include
- >files for TCP. By convention (at least, for BSD) it is usually 5.
- >Michael
- Assuming you mean listen and not select, Linux (at least for
- tcp) ignores the second argument. Linux will happly have ~450
- unaccepted connections on a socket before it starts ignoring new
- connection requests (It ignores them so that they will be sent again,
- and perhaps the resources will be available to accept them.) So 5
- will work as well as any other number, and I beleive that BSD silently
- limits them to 5.
-
- Ross Biro bir7@leland.stanford.edu
- Member League for Programming Freedom (LPF)
- mail lpf@uunet.uu.net for information
-
-
-