• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Maximum number of sockets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Maximum number of sockets


  • Subject: Re: Maximum number of sockets
  • From: Quinn <email@hidden>
  • Date: Mon, 12 Jul 2004 16:43:21 +0100

At 19:02 +0200 18/6/04, Eric Arlotti wrote:
It works well for 500 or 600 sockets, but problems occur around 1000 (1024 ?) sockets

Hmmm, that's very suspicious. If the library is, in fact, calling select, then it may be running into problem if you use more than 1024 sockets. The FD_SETSIZE, which is the maximum number of file descriptors that can be handled by the fd_set structure, is 1024. The select system call handles more file descriptors properly (well, as properly as select can given its less-than-ideal design), but it could be that your library is not handling it (for example, expecting to be able to represent an arbitrary socket within an fd_set structure rather than dynamically allocating the set).

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Maximum number of sockets
      • From: Dario <email@hidden>
  • Prev by Date: Re: Help: MoreSCFPortScanner.c Problem
  • Next by Date: Re: Use CFMessagePort in CFM app?
  • Previous by thread: Re: Help: MoreSCFPortScanner.c Problem
  • Next by thread: Re: Maximum number of sockets
  • Index(es):
    • Date
    • Thread