Skip to content
Tcl Source Code Artifact [50cff1da5f]
Login

Artifact [50cff1da5f]

Artifact 50cff1da5f7aea2c993b4992978d998b31e99374:

Ticket change [50cff1da5f] - Ticket [2911139fffffffff|2911139fff] <i>http::geturl abuses vwait on async call</i> status still Open with 4 other changes by kjnash on 2012-10-30 09:43:54.
D 2012-10-30T09:43:54
J icomment I\shad\sproblem\swith\sthe\ssame\ssymptoms,\sso\sI'll\sadd\smy\scomments\sto\sthis\stracker,\sthough\sI\sam\snot\ssure\sif\smy\sfix\swill\swork\sfor\sthe\soriginal\sproblem.\n\nMy\sproblem\swas\swith\sEOF\sdetection\swhen\sa\sserver\scloses\sa\skeep-alive\sconnection.\n\nIf\shttp::geturl\sis\scalled\swith\s-keepalive\s1\sand\sa\s-command\sthat\senters\sthe\sevent\sloop\s(e.g\sfor\san\sauthorization\sdialog),\sand\sthe\sHTTP\sresponse\sincludes\sa\s"Content-Length"\sheader,\sthen\sa\s(slow)\srace\scondition\sensues\sbetween\sthe\sserver's\sclosing\sof\sthe\sconnection,\sand\sthe\suser's\sresponse\sto\sthe\sdialog.\s\sIf\sthe\sconnection\sis\sclosed\sfirst,\sthe\sunpatched\scode\sfails\sat\sline\s1126\swith\srepeated\seof\sfileevents,\sbecause\sthe\scommand\shttp::Eof\stries\srepeatedly\sto\srun\sthe\suser's\s-command,\sand\snever\sreturns.\s\sThis\scan\sbe\sreported\sas\s"too\smany\snested\sevaluations".\n\nWhile\sit\smight\snot\sbe\sgood\sstyle\sto\sallow\sthe\s-command\sscript\sto\senter\sthe\sevent\sloop,\shttp(n)\sdoes\snot\sexclude\sthis\spossibility.\n\nThere's\smore\sthan\sone\sway\sto\sfix\sthe\sbug.\s\sTwo\spossible\spatches\sare\sattached.\s\sEIther\swill\sfix\sthe\sbug;\sboth\sfixes\scan\sbe\sapplied.\n\nPatches\sagainst\score-8-5-branch\scheckin\s69687a01db,\sdated\s2012-10-24\s11:28:33.\n\n
J login kjnash
J mimetype text/plain
J username kjnash
K 2911139fffffffffffffffffffffffffffffffff
U kjnash
Z afbd3a6d3e889ffabf0999729d477553