Skip to content
Tcl Source Code Artifact [13db0478e2]
Login

Artifact [13db0478e2]

Artifact 13db0478e2dff513c16c17d2ac9d26e297abff71:

Ticket change [13db0478e2] - Ticket [2446662fffffffff|2446662fff] <i>chanIO.test failures on Win32 msys/mingw</i> status still Open with 4 other changes by ferrieux on 2009-01-03 18:53:07.
D 2009-01-03T18:53:07
J icomment Further\sanalysis\sof\sthe\sHeisenbug\spart:\sit\sis\snot\scompletely\sabnormal\s!\nIndeed,\sRFC793\ssays\son\shttp://www.freesoft.org/CIE/RFC/793/34.htm\n\n\s\s\s\s\sESTABLISHED\n\s\s\s\s\s\sFIN-WAIT-1\n\s\s\s\s\s\sFIN-WAIT-2\n\s\s\s\s\s\sCLOSE-WAIT\n\n\s\s\s\s\s\s\s\sIf\sthe\sRST\sbit\sis\sset\sthen,\sany\soutstanding\sRECEIVEs\sand\sSEND\n\s\s\s\s\s\s\s\sshould\sreceive\s"reset"\sresponses.\s\sAll\ssegment\squeues\sshould\sbe\n\s\s\s\s\s\s\s\sflushed.\n\n\nThis\smeans\sthat\stwo\ssituations\smay\soccur:\n\n\s\s-\seither\swe\smanage\sto\sdrink\sall\sdata\sup\sto\sthe\sTcl\slevel\sbefore\sthe\sRST\soccurs\n\s\s-\sor\swe\slag\ssomewhere\s(introduce\san\s[after]\sto\ssee\sthis)\sand\sgo\sback\sto\sdoing\srecv()\swhile\sthe\sTCP\sstack\shas\salready\sreceived\sthe\sRST\n\nThese\stwo\sperfectly\snormal\ssituations\slead\sto\sdifferent\ssizes\sof\sdata\son\sthe\sreceive\sside.\nWhat\sis\s*not*\snormal\sthough\sis\sthat\sthe\sTcl-level\soutcome\shas\s*three*\s(not\stwo)\scases:\n\n\s\s(a)\sfull\sdata\n\s\s(b)\sconnection\sreset\sby\speer\n\s\s(c)\struncated\sdata\n\nIn\sparticular,\sadding\san\s[after\s1000]\sbefore\sthe\sreading\sloop\sin\smy\sabove\ssynchronous\sclient\sdeterministically\syields\s(c),\swhile\swithout\sthe\sdelay\swe\sget\s(b)\swith\sprob==0.1\sand\s(a)\swith\sprob==0.9\s(and\salso\s(c)\swith\sprob==epsilon)\n\nSo\sthe\sbug\shunt\scan\snow\sbe\ssummarized\sas:\n\s\s-\sfind\sout\swhy\sthe\sTcl\sserver\sis\ssending\sRST\n\s\s-\siron\sout\sthe\sTcl-level\soutcomes\s(b\svs.\sc)\n\n\n\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 2446662fffffffffffffffffffffffffffffffff
U ferrieux
Z a3ddb08ddad98ca6f479533aa31d8977