Overview
| Artifact ID: | dc1720e3c3f6c91dd19b965f869ea1bcd3a34558 |
|---|---|
| Ticket: | 1028264fffffffffffffffffffffffffffffffff
socket: failed write prevents read |
| User & Date: | ferrieux on 2008-11-09 06:06:56 |
Changes
- icomment:
OK got it, guys :-) The key here is whether the client does an explicit [close] of the socket before exiting. If it does, the whole OS socket buffer is actually sent over the wire, *and* a FIN TCP packet ends the stream. If it doesn't, the stream is truncated (depending on the speed of things), *and* an RST TCP packet goes out on the truncation. This RST in turn wreaks havoc in the receiver. So a first action should be to make sure Tcl finalizers do the same thing as [close]. A second action would be to decide whether it is legal for the receiveing OS to discard input on an RST.
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"