We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From microsoft documentation SO_RCVTIMEO and SO_SNDTIMEO are expressed in ms whereas in the code the timeout seems to be targetting 20s as for linux:
#ifdef WIN32 const DWORD timeout = 20; #else struct timeval timeout { }; timeout.tv_sec = 20; // after 20 seconds connect() will timeout timeout.tv_usec = 0; #endif
The text was updated successfully, but these errors were encountered:
Exactly, also the communcation drops without any error making it difficult to find out where the problem was, should be 20000.
Sorry, something went wrong.
it's the right answer
https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-setsockopt
No branches or pull requests
From microsoft documentation SO_RCVTIMEO and SO_SNDTIMEO are expressed in ms whereas in the code the timeout seems to be targetting 20s as for linux:
The text was updated successfully, but these errors were encountered: