From 0702179d28f42d9901bd5d7a5251e8e47751853d Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 28 Nov 2004 05:57:18 +0000 Subject: Very oops. make windows nonblocking sockets nonblocking svn:r2998 --- src/common/compat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/compat.c b/src/common/compat.c index 4cf481fba5..49c8c3a7af 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -180,8 +180,7 @@ int replace_file(const char *from, const char *to) void set_socket_nonblocking(int socket) { #ifdef MS_WINDOWS - /* Yes means no and no means yes. Do you not want to be nonblocking? */ - int nonblocking = 0; + int nonblocking = 1; ioctlsocket(socket, FIONBIO, (unsigned long*) &nonblocking); #else fcntl(socket, F_SETFL, O_NONBLOCK); -- cgit v1.2.3-54-g00ecf