diff options
author | hobbs <hobbs@noemail.net> | 2001-03-31 05:44:31 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2001-03-31 05:44:31 (GMT) |
commit | 78f7656961e1fbec7e2c734a4703c7dbf913ccb5 (patch) | |
tree | f5cd812577ee6ab35141efe08087d98b35fd550b /win/tclWinSock.c | |
parent | bd2129210ccab4564ad27f7e0953f62edb051a3f (diff) | |
download | tcl-78f7656961e1fbec7e2c734a4703c7dbf913ccb5.zip tcl-78f7656961e1fbec7e2c734a4703c7dbf913ccb5.tar.gz tcl-78f7656961e1fbec7e2c734a4703c7dbf913ccb5.tar.bz2 |
* win/tclWinSock.c (SocketEventProc): Fixed race condition in
readability of socket on Windows.
[Patch #410674, Bug #219205 #219333]
FossilOrigin-Name: 870dfc7f970d1dc1cc897e8c4d5610d672f8ebd5
Diffstat (limited to 'win/tclWinSock.c')
-rw-r--r-- | win/tclWinSock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c index 92e88ef..77b68e8 100644 --- a/win/tclWinSock.c +++ b/win/tclWinSock.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinSock.c,v 1.19 2000/09/28 06:38:23 hobbs Exp $ + * RCS: @(#) $Id: tclWinSock.c,v 1.20 2001/03/31 05:44:31 hobbs Exp $ */ #include "tclWinInt.h" @@ -836,9 +836,9 @@ SocketEventProc(evPtr, flags) if ((*winSock.select)(0, &readFds, NULL, NULL, &timeout) != 0) { mask |= TCL_READABLE; } else { + infoPtr->readyEvents &= ~(FD_READ); SendMessage(tsdPtr->hwnd, SOCKET_SELECT, (WPARAM) SELECT, (LPARAM) infoPtr); - infoPtr->readyEvents &= ~(FD_READ); } } if (events & (FD_WRITE | FD_CONNECT)) { |