<i>socket: failed write prevents read</i> status still Open with 4 other changes
by
.
D 2008-11-09T04:15:25
J icomment Attaching\smuch\ssimpler\stest\scase:\sall\ssynchronous,\sno\sfileevents.\nRepro\son\sWin32.\nStart\sserver:\s\stclsh\ssrv.tcl\sINITIAL-PAUSE-IN-MILLISECONDS\nStart\sclient:\s\stclsh\scli.tcl\nPrinciple:\sclient\sconnects,\ssends\s1\slines\squickly,\sexits\s(closes).\nServer\saccepts\sconnection,\spauses\sthe\sgiven\snumber\sof\sms,\sgets\s1\sline,\sthen\sdoes\sa\sputs\syielding\sa\sECONNRESET,\sthen\sreads\sthe\stail\sand\sdisplays\sit.\n\nResult:\n\s-\sWith\sinitial\spause\sis\slarge\senough\s(100ms\sis\sokay),\sthe\stail\sis\sreliably\sempty\n\s-\sWith\sno\sinitial\spause,\sthe\stail\svaries\sfrom\s0\sto\s7\slines\sat\srandom\n\nNotice\sthat\sboth\sare\spathological.\sI\slike\sthe\sfirst\sbecause\sit\sis\seasier\sto\sdebug\s(no\srace\scondition):\slooks\slike\sthe\sinput\sis\sread\sand\sbuffered\sinside\sTcl's\sgeneric\sbuffered\sinput\slayer,\sbut\ssomehow\sdiscarded\sbecause\sof\sthe\sECONNRESET.\n\nInvestigation\sgoing\son\s;-)\n\s\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 1028264fffffffffffffffffffffffffffffffff
U ferrieux
Z e3d44e4d5617cc6dac34b932bab7d998