• 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: select succeeds... recv blocks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: select succeeds... recv blocks


  • Subject: RE: select succeeds... recv blocks
  • From: "Jamie Wood" <email@hidden>
  • Date: Thu, 14 Dec 2006 15:02:14 -0800

Hi Nathan,

After select() returns 1, have you verified that FD_ISSET returns non-zero for the file descriptor you are about to read from?

Jamie

From: Nathan Auch <email@hidden>
To: email@hidden
Subject: select succeeds... recv blocks
Date: Wed, 13 Dec 2006 16:17:47 -0500

I'm seeing the following problem in my application. We do a select() on
a single file descriptor (socket) waiting for the socket to become ready
for reading. Very rarely, select is returning 1 but a subsequent call to
recv blocks. I have been unable to reproduce this outside of my
application and the problem takes about two hours to reproduce. Has
anybody seen this behaviour before? Does anybody have any ideas of what
may be going wrong? I'm reluctant to switch to poll at this point in
time, but I will try it soon and see if the problem disappears.

Thanks,
 -Nathan



 _______________________________________________
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

_________________________________________________________________
Get the latest Windows Live Messenger 8.1 Beta version. Join now. http://ideas.live.com


_______________________________________________
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


References: 
 >select succeeds... recv blocks (From: Nathan Auch <email@hidden>)

  • Prev by Date: Re: SCPreferencesSynchronize not doing its job
  • Next by Date: Binding to a specific IP address
  • Previous by thread: Re: select succeeds... recv blocks
  • Next by thread: Binding to a specific IP address
  • Index(es):
    • Date
    • Thread