I am writing a cross-platform library that, among other things, provides a socket interface, and during the launch of my unit-test package, I noticed something strange with respect to timeouts set via setsockopt()
: On Windows, locking It seems like a call recv()
returns in about half a second (500 ms) later than indicated by the SO_RCVTIMEO
option.
Is there any explanation for this in the docs I skipped? Searching the Internet, I was able to find one other link to the problem - could someone who owns "Windows Sockets Network Programming" Bob Quinn and Dave Jester look for page 466 for me? Unfortunately, I can now run my Windows Server 2008 R2 test, does the other version of Windows have the same strange behavior?
source share