.
D 2006-03-13T23:42:46
J assignee hobbs
J cmimetype text/plain
J comment Assume\n\nset\stoken\s[http::geturl\s-timeout\sXXXX\sbadurl]\n\nThe\stimeout\swill\strigger,\sbecause\sof\sthe\sbadurl.\n\nThe\s"http::geturl"\screates\sa\stimer\sto\shandle\sthe\n-timeout,\swith\sthe\sid\sstored\sin\sstate(after).\sSee\sline\n447\sof\shttp.tcl.\sLater\son\sit\sdoes\sa\s[http::wait]\son\sthe\ntoken\sto\swait\sfor\sthe\sconnection.\sSee\sline\s479ff.\n\nWhen\sthe\stimer\striggers\sit\scalls\s[http::reset].\sSee\nline\s447.\sThis\sdeletes\sthe\stoken,\si.e.\sthe\sstate\sarray.\nSee\sline\s196ff.\n\nThe\s[http::wait]\sthe\sgeturl\sis\sin\s(line\s479)\sthen\nbreaks\sout\sof\sthe\s[vwait]-eventloop\sit\sis\sin\sand\nreturns\s$state(status),\ssee\sline\s956.\sExcept\sthat\sthe\nstate\sis\salready\sgone\sdue\sto\sthe\saforementioned\n[reset],\stherefore\sboom.\n\nNote\salso,\seven\sif\sthe\s[http::wait]\swould\snot\sthrow\san\nerror\sthen\s[http::geturl]\sitself\swould,\sbecause\nimmediately\safter\sthe\s[http::wait]\sit\salso\stries\sto\naccess\sthe\sstate\sarray\sby\sitself,\sto\sdetermine\swhat\nwent\swrong\s(line\s479ff).\n\nA\spossible\ssolution\sis\sto\suse\s[info\sexists]\sto\scheck\sif\nthe\sstate\sis\sgone,\sand\sreact\saccordingly\s(http::wait\nreturns\snothing,\shttp::geturl\sthen\sknows\sthat\sa\stimeout\nhappened).\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter andreas_kupries
J subsystem 29.\shttp\sPackage
J title Bug\swhen\s-timeout\sspecified\sand\striggered
J type Bug
K 1449233fffffffffffffffffffffffffffffffff
U andreas_kupries
Z 66e19ed1b33175ecb7b6ebeb68dd21c4