RE: select succeeds... recv blocks
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