Skip to content
Tcl Source Code Artifact [04dab8f1e3]
Login

Artifact [04dab8f1e3]

Artifact 04dab8f1e3693bd071fb9bd52a8f73fa6e4e952114fd61b3099000d87262a971:

Ticket change [04dab8f1e3] - Closed ticket [3581754fffffffff|3581754fff]: <i>EOF detection when a server closes a keep-alive connection</i> plus 7 other changes by kjnash on 2018-04-12 14:05:45.
D 2018-04-12T14:05:45.551
J closedate 2458221.08733277
J closer kjnash
J comment If\shttp::geturl\sis\scalled\swith\s-keepalive\s1\sand\sa\s-command\sthat\senters\sthe\r\n\sevent\sloop\s(e.g\sfor\san\sauthorization\sdialog),\sand\sthe\sHTTP\sresponse\r\n\sincludes\sa\s"Content-Length"\sheader,\sthen\sa\s(slow)\srace\scondition\sensues\r\n\sbetween\sthe\sserver's\sclosing\sof\sthe\sconnection,\sand\sthe\suser's\sresponse\sto\r\n\sthe\sdialog.\sIf\sthe\sconnection\sis\sclosed\sfirst,\sthe\sunpatched\scode\sfails\sat\r\n\sline\s1126\swith\srepeated\seof\sfileevents,\sbecause\sthe\scommand\shttp::Eof\stries\r\n\srepeatedly\sto\srun\sthe\suser's\s-command,\sand\snever\sreturns.\sThis\scan\sbe\r\n\sreported\sas\s"too\smany\snested\sevaluations".\r\n\r\n\sWhile\sit\smight\snot\sbe\sgood\sstyle\sto\sallow\sthe\s-command\sscript\sto\senter\sthe\r\n\sevent\sloop,\shttp(n)\sdoes\snot\sexclude\sthis\spossibility.\r\n\r\n\sThere's\smore\sthan\sone\sway\sto\sfix\sthe\sbug.\sTwo\spossible\spatches\sare\r\n\sattached.\sEIther\swill\sfix\sthe\sbug;\sboth\sfixes\scan\sbe\sapplied.\r\n\r\n\sPatches\sagainst\score-8-5-branch\scheckin\s69687a01db,\sdated\s2012-10-24\r\n\s11:28:33.
J icomment Thanks\sfor\sthe\sfix.\sI've\sclosed\sthe\sticket.
J login kjnash
J mimetype text/plain
J severity Minor
J status Closed
K 3581754fffffffffffffffffffffffffffffffff
U kjnash
Z 1864329064921f0b68f9b78fcd4e0f1b