mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
tests: fixed blocking sockets on W32
Sockets on W32 were non-blocking due to copy-paste errors.
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user