Overview
| Artifact ID: | 13db0478e2dff513c16c17d2ac9d26e297abff71 |
|---|---|
| Ticket: | 2446662fffffffffffffffffffffffffffffffff
chanIO.test failures on Win32 msys/mingw |
| User & Date: | ferrieux on 2009-01-03 18:53:07 |
Changes
- icomment:
Further analysis of the Heisenbug part: it is not completely abnormal ! Indeed, RFC793 says on http://www.freesoft.org/CIE/RFC/793/34.htm ESTABLISHED FIN-WAIT-1 FIN-WAIT-2 CLOSE-WAIT If the RST bit is set then, any outstanding RECEIVEs and SEND should receive "reset" responses. All segment queues should be flushed. This means that two situations may occur: - either we manage to drink all data up to the Tcl level before the RST occurs - or we lag somewhere (introduce an [after] to see this) and go back to doing recv() while the TCP stack has already received the RST These two perfectly normal situations lead to different sizes of data on the receive side. What is *not* normal though is that the Tcl-level outcome has *three* (not two) cases: (a) full data (b) connection reset by peer (c) truncated data In particular, adding an [after 1000] before the reading loop in my above synchronous client deterministically yields (c), while without the delay we get (b) with prob==0.1 and (a) with prob==0.9 (and also (c) with prob==epsilon) So the bug hunt can now be summarized as: - find out why the Tcl server is sending RST - iron out the Tcl-level outcomes (b vs. c) - login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"