Overview
| Artifact ID: | 4815ff80fd7fcf87c2cf192935afba7862f1e50c |
|---|---|
| Ticket: | 1028264fffffffffffffffffffffffffffffffff
socket: failed write prevents read |
| User & Date: | ferrieux on 2008-11-09 17:34:51 |
Changes
- icomment:
For the first action, here is what's happening: The TcpCloseProc is called during interp finalization, *but* it contains the test: /* * Check that WinSock is initialized; do not call it if not, to prevent * system crashes. This can happen at exit time if the exit handler for * WinSock ran before other exit handlers that want to use sockets. */ if (SocketsEnabled()) ... so, I assume we're being hit by this situation: SocketExitHandler() was called too early, before individual sockets could be closed by the generic TclFinalizeIOSubsystem(). The result is a WSACleanup() in mid-life of all open sockets, hence the RST. Now to look into the order of finalizations to see how to circumvent this ;-)
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"