Skip to content

Commit

Permalink
Network backend: Fix timeout value not respected on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Cercueil <[email protected]>
  • Loading branch information
Paul Cercueil committed Sep 1, 2016
1 parent b348b21 commit 164de86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ static int do_connect(const struct addrinfo *addrinfo,
SOCKET s;

s = WSASocketW(addrinfo->ai_family, addrinfo->ai_socktype, 0, NULL, 0,
WSA_FLAG_NO_HANDLE_INHERIT);
WSA_FLAG_NO_HANDLE_INHERIT | WSA_FLAG_OVERLAPPED);
if (s == INVALID_SOCKET)
return -WSAGetLastError();

Expand Down

0 comments on commit 164de86

Please sign in to comment.