.
D 2022-09-09T16:50:33.315
J assignee aku
J closer nobody
J comment If\shttp::geturl\sused\swith\s-timeout\s>\s0\sit\smay\stimeout\sin\sthe\s\r\nmiddle\sof\sthe\stransaction\ssince\sthere\sis\sno\safter\scancel\s\r\nexcept\sin\shttp::Finish\swhich\sis\stoo\slate.\r\n\r\nFix:\r\nAdd\sthis\sto\shttp::Connect\r\n\r\nif\s{[info\sexists\sstate(after)]}\s{\r\n\s\s\s\safter\scancel\s$state(after)\r\n\s\s\s\sunset\sstate(after)\r\n}
J icomment For\sthe\sDNS\slookup\sissue,\ssee\salso\sbug\s[824251]\s"async\sclient\ssockets\sblock\sfor\sDNS"\sin\sSec.\s27\s"Channel\sTypes".\s\shttp::geturl\snow\shas\san\soptional\sworkaround\sthat\sallows\sthe\sscript\sto\swait\sin\sthe\sevent\sloop\swhile\sthe\sconnection\sis\smade.\r\n\r\nAnother\spossible\sinterpretation\sof\s"timeout"\sis\sthat\sit\sapplies\safter\sa\speriod\sof\sinactivity\s-\snot\sonly\swhen\screating\sthe\ssocket,\sbut\sat\sany\stime\sin\sthe\stransaction.\s\sThis\swould\snot\sbe\sdifficult\sto\simplement\s-\sthe\stimeout\sevent\swould\sbe\scancelled\sand\sre-started\swhenever\san\sevent\shandler\sis\scalled.\r\n\r\nHowever,\swe\sdo\snot\sneed\stwo\stimeout\sflags.\s\sThe\sdocumented\s-timeout\sremains.
J login kjnash
J mimetype text/x-fossil-plain
J severity Minor
K 874321ffffffffffffffffffffffffffffffffff
U kjnash
Z 0f2daac67253e4203430dec953d09ba5