recv blocks although socket is ready
- From: "314.michael@xxxxxxxxx" <314.michael@xxxxxxxxx>
- Date: 10 Nov 2006 10:41:59 -0800
I have a strange problem using select() and recv(). Intermittedly it
occurs, that even though select() reports the socket to be readable the
following call to recv() blocks. When I shutdown the other peer of the
connection recv() returns and WSAGetLastError() returns WSAESHUTDOWN.
This only occures on our Dell Workstation PWS670. I couldn't reproduce
it on a different machine. I replaced the NIC with a different modell
from a different vendor and installed a different driver but the
problem persited. Running the same app on the same hardware under Linux
I was not able to reproduce the problem though.
Another point which seems worth noting is, that the problem occurs more
frequently when there is some UDP traffic on another socket. This
traffic is consumed by another thread in my app which isn't affected by
the blocking of the main thread.
My setup:
- Dell Workstation PWS670 4xXeon 3.6GHz, 3GB RAM,
- Intel(R) PRO/1000 MTW NIC or ProG-2000S (with Realtek driver)
- Windows XP SP2 (almost) fully patched
Any ideas?
Thanks,
Michael
.
- Follow-Ups:
- Re: recv blocks although socket is ready
- From: Alexander Nickolov
- Re: recv blocks although socket is ready
- Prev by Date: Re: to detect PAC file..
- Next by Date: Re: recv blocks although socket is ready
- Previous by thread: Re: little change to one or two files, and debug it, it compile all
- Next by thread: Re: recv blocks although socket is ready
- Index(es):
Relevant Pages
|
Loading