Overview
| Artifact ID: | fce6fa275e65aa1c0fb83e68535972f25edb706a |
|---|---|
| Ticket: | 1028264fffffffffffffffffffffffffffffffff
socket: failed write prevents read |
| User & Date: | ferrieux on 2008-11-09 04:15:25 |
Changes
- icomment:
Attaching much simpler test case: all synchronous, no fileevents. Repro on Win32. Start server: tclsh srv.tcl INITIAL-PAUSE-IN-MILLISECONDS Start client: tclsh cli.tcl Principle: client connects, sends 1 lines quickly, exits (closes). Server accepts connection, pauses the given number of ms, gets 1 line, then does a puts yielding a ECONNRESET, then reads the tail and displays it. Result: - With initial pause is large enough (100ms is okay), the tail is reliably empty - With no initial pause, the tail varies from 0 to 7 lines at random Notice that both are pathological. I like the first because it is easier to debug (no race condition): looks like the input is read and buffered inside Tcl's generic buffered input layer, but somehow discarded because of the ECONNRESET. Investigation going on ;-)
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"