Don't use SO_REUSEADDR on Windows.
It's semantics suck. See http://bugs.python.org/issue2550
This commit is contained in:
parent
1d7d70ba4a
commit
c1a04b6dfd
@ -363,14 +363,6 @@ static oio_req* oio_overlapped_to_req(OVERLAPPED* overlapped) {
|
||||
static int oio_set_socket_options(SOCKET socket) {
|
||||
DWORD yes = 1;
|
||||
|
||||
/* Set the SO_REUSEADDR option on the socket */
|
||||
/* If it fails, soit. */
|
||||
setsockopt(socket,
|
||||
SOL_SOCKET,
|
||||
SO_REUSEADDR,
|
||||
(char*)&yes,
|
||||
sizeof(int));
|
||||
|
||||
/* Make the socket non-inheritable */
|
||||
if (!SetHandleInformation((HANDLE)socket, HANDLE_FLAG_INHERIT, 0)) {
|
||||
oio_set_sys_error(GetLastError());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user