tests: fixed blocking sockets on W32

Sockets on W32 were non-blocking due to copy-paste errors.
This commit is contained in:
Evgeny Grin (Karlson2k)
2021-11-21 15:43:18 +03:00
parent 0b9d6e9446
commit 3b950aef4d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -569,7 +569,7 @@ make_blocking (MHD_socket fd)
if (-1 == fcntl (fd, F_SETFL, flags & ~O_NONBLOCK))
abort ();
#elif defined(MHD_WINSOCK_SOCKETS)
unsigned long flags = 1;
unsigned long flags = 0;
ioctlsocket (fd, (int) FIONBIO, &flags);
#endif /* MHD_WINSOCK_SOCKETS */
+1 -1
View File
@@ -743,7 +743,7 @@ make_blocking (MHD_socket fd)
if (-1 == fcntl (fd, F_SETFL, flags & ~O_NONBLOCK))
abort ();
#elif defined(MHD_WINSOCK_SOCKETS)
unsigned long flags = 1;
unsigned long flags = 0;
ioctlsocket (fd, (int) FIONBIO, &flags);
#endif /* MHD_WINSOCK_SOCKETS */