home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 17525 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1.5 KB  |  35 lines

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