summaryrefslogtreecommitdiffstats
path: root/win/tclWinSock.c
diff options
context:
space:
mode:
authorstanton <stanton>1999-04-15 22:38:46 (GMT)
committerstanton <stanton>1999-04-15 22:38:46 (GMT)
commit743017523886608c1403479b0676d469b8f998ac (patch)
treee29ecad719da73c67d437be2a057cc01dca684e9 /win/tclWinSock.c
parentae56f9fc8840d99814f8fc8986fe6445ec9a57e6 (diff)
downloadtcl-743017523886608c1403479b0676d469b8f998ac.zip
tcl-743017523886608c1403479b0676d469b8f998ac.tar.gz
tcl-743017523886608c1403479b0676d469b8f998ac.tar.bz2
* Merge 8.0.5 changes:
- Mac changes for final release - Minor fixes to tools configure file * win/tclWinSock.c: Apply patch to allow write access to a socket if FD_WRITE is sent but FD_CONNECT is not. Some strange problem with either Win32 or a socket driver. [Bug: 1664 1776]
Diffstat (limited to 'win/tclWinSock.c')
-rw-r--r--win/tclWinSock.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c
index 9fa05c9..102feb0 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.6 1999/03/10 05:52:54 stanton Exp $
+ * RCS: @(#) $Id: tclWinSock.c,v 1.7 1999/04/15 22:38:48 stanton Exp $
*/
#include "tclInt.h"
@@ -2000,6 +2000,14 @@ SocketProc(hwnd, message, wParam, lParam)
}
}
+ if (infoPtr->flags & SOCKET_ASYNC_CONNECT) {
+ infoPtr->flags &= ~(SOCKET_ASYNC_CONNECT);
+ if (error != ERROR_SUCCESS) {
+ TclWinConvertWSAError(error);
+ infoPtr->lastError = Tcl_GetErrno();
+ }
+ infoPtr->readyEvents |= FD_WRITE;
+ }
infoPtr->readyEvents |= event;
break;
}