• 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: FD_SETSIZE > 1024 and select() break on intel ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FD_SETSIZE > 1024 and select() break on intel ?


  • Subject: Re: FD_SETSIZE > 1024 and select() break on intel ?
  • From: Frederick Cheung <email@hidden>
  • Date: Thu, 12 Feb 2009 15:04:51 +0000


On 12 Feb 2009, at 14:35, Nicolas Berloquin wrote:

Hi !

I'm currently working on making an existing app a universal binary.
I have noticed that my select() code that worked fine in ppc stops working when running
on intel when I have more than 1024 active file descriptors (I'm accessing disk files
(sometime LOTS of them) and tcpip sockets).

Sounds like you should read up on FD_SETSIZE in man select:

The behavior of these macros is undefined if a descriptor value is less than zero or greater than or equal to
FD_SETSIZE

Fred


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: FD_SETSIZE > 1024 and select() break on intel ?
      • From: Nicolas Berloquin <email@hidden>
References: 
 >FD_SETSIZE > 1024 and select() break on intel ? (From: Nicolas Berloquin <email@hidden>)

  • Prev by Date: FD_SETSIZE > 1024 and select() break on intel ?
  • Next by Date: Re: FD_SETSIZE > 1024 and select() break on intel ? (case closed)
  • Previous by thread: FD_SETSIZE > 1024 and select() break on intel ?
  • Next by thread: Re: FD_SETSIZE > 1024 and select() break on intel ?
  • Index(es):
    • Date
    • Thread