From ce4946768c5f295b8e11d6e3c420ac9d8f83f8ca Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Sat, 15 Oct 2011 09:02:22 +0000 Subject: PR#5328: Windows, Unix.select and non-blocking sockets (untested patch) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11223 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- otherlibs/win32unix/select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'otherlibs/win32unix/select.c') diff --git a/otherlibs/win32unix/select.c b/otherlibs/win32unix/select.c index d96c3d9d2..af9766ff8 100644 --- a/otherlibs/win32unix/select.c +++ b/otherlibs/win32unix/select.c @@ -556,7 +556,7 @@ void socket_poll (HANDLE hStop, void *_data) if (iterQuery->uFlagsFd & FLAGS_FD_IS_BLOCKING) { DEBUG_PRINT("Restore a blocking socket"); - iMode = 1; + iMode = 0; check_error(lpSelectData, WSAEventSelect((SOCKET)(iterQuery->hFileDescr), aEvents[i], 0) != 0 || ioctlsocket((SOCKET)(iterQuery->hFileDescr), FIONBIO, &iMode) != 0); -- cgit v1.2.3-70-g09d2