Explorar o código

Very oops. make windows nonblocking sockets nonblocking

svn:r2998
Nick Mathewson %!s(int64=21) %!d(string=hai) anos
pai
achega
0702179d28
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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);