Overview
| Artifact ID: | 9df3209eed953f5ce8b3833ca893225d75fa25b2 |
|---|---|
| Ticket: | 2446662fffffffffffffffffffffffffffffffff
chanIO.test failures on Win32 msys/mingw |
| User & Date: | ferrieux on 2008-12-28 19:34:54 |
Changes
- icomment:
Update: we can release one constraint ! Indeed, I get spurious "connection reset by peer" and EOFs even with code devoid of any half-close (see below). So only one FIN from B is needed. Moreover, the code below clearly separates the last data write from the close (flush in the server, distinct from exit), so the FIN packet itself is separate from the data. It seems only the *timing* plays a role in that nasty bug. #client set ::s [socket $host $port] puts $::s Hey1 puts $::s Hey2 puts $::s Hey3 flush $::s while {[gets $::s line]>=0} { lappend ::acc $line } puts RESULT:$::acc #server proc accept {s args} {set ::sok $s} set s [socket -server accept $port] vwait ::sok set cnt 0 while {[gets $::sok line]>=0} {puts $::sok $line;puts stderr XMIT:$line;incr cnt;if {$cnt>=3} break} puts $::sok DONE flush $::sok puts stderr WRITTEN exit 0 - login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"