From 164de866a7ea418e4566e53b5db02adb8e653023 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Thu, 1 Sep 2016 12:28:30 +0200 Subject: [PATCH] Network backend: Fix timeout value not respected on Windows Signed-off-by: Paul Cercueil --- network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network.c b/network.c index 55e655c50..946ec0794 100644 --- a/network.c +++ b/network.c @@ -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();