Browse Source

Very oops. make windows nonblocking sockets nonblocking

svn:r2998
Nick Mathewson 21 years ago
parent
commit
0702179d28
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/common/compat.c

+ 1 - 2
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);