New issue
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
socket.getsockopt bug #43322
Comments
i tested this on windows xp. the installed python when doing socket.getsockopt with buffer_size > 0, for -tomer |
Logged In: YES According to http://www.sockets.com/winsock.htm#GetSockOpt "The integer pointed to by optlen should originally contain The size of a linger struct is 4 bytes. I would agree that the Python documentation for "Get a socket option. See the Unix manual for level and Perhaps just refer users to the OSes documentation on its Matt |
Logged In: YES i don't think so: according to http://www.sockets.com/winsock.htm#GetSockOpt struct linger is defined this way: struct linger {
int l_onoff;
int l_linger;
} which means 8 bytes, and the same goes for struct timeval: struct timeval {
long tv_sec;
long tv_usec;
}; still, the getsockopt returns only 4. i looked at the python -tomer |
Logged In: YES Visual Studio .NET 2003 comes with WinSock.h and defines the struct linger { However, on my NetBSD machine the linger struct is defined as, struct linger { |
Logged In: YES lovely. i hate windows. i guess it's not a bug then -- it's and i now found that SNDTIMEO doesn't take a timeval, rather -tomer |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: