Very oops. make windows nonblocking sockets nonblocking

svn:r2998
This commit is contained in:
Nick Mathewson 2004-11-28 05:57:18 +00:00
parent f77ff938b7
commit 0702179d28

View File

@ -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);