Skip to content
Tcl Source Code Artifact [9b1d205dc7]
Login

Artifact [9b1d205dc7]

Artifact 9b1d205dc7559029681dbe87399bf7160e8ebb23992a5fe15d047ef4e6ca7ed4:

Ticket change [9b1d205dc7] - Closed ticket [1253676fffffffff|1253676fff]: <i>http::geturl should not vwait when used asynchronously</i> plus 9 other changes by kjnash on 2022-09-09 17:41:58.
D 2022-09-09T17:41:58.393
J assignee aku
J closedate 2459832.2374814
J closer kjnash
J comment When\shttp::geturl\sis\scalled\swith\s-command\sand\s-timeout\r\n>\s0\sit\sshould\snot\svwait\sfor\sthe\ssocket\sconnection\sto\sbe\r\nestablished.\sInstead\sit\sshould\sreturn\simmediately\sto\r\nthe\scaller\sand\sdo\sany\sfurther\sactions\sin\sevent\shandlers.\r\n\r\nSee\salso\shttp://wiki.tcl.tk/1255\r\n\r\nHere's\sthe\soriginal\sdiscussion\son\sthe\sTcler's\schat\r\nabout\sthis\ssubject:\r\n[21:30]schelteHow\ssneaky,\shttp::geturl\suses\sa\svwait\s\r\n[21:32]kbk_schelte\s-\sBut\syou\scan\sget\sit\sto\sreturn\r\nimmediately\sby\sgiving\sit\s-command\r\n[21:33]schelteThat's\swhat\sI'm\sdoing.\sIt\sstill\suses\r\nvwait\sfor\sopening\sthe\ssocket\sin\s-async\smode\s...\r\n[21:35]kbk_Not\sif\s-timeout\sis\s0.\r\n[21:36]schelteYeah,\sbut\sof\scourse\sit\sisn't.\sCan't\r\nhang\sup\sthe\sprogram\sbecause\sa\ssite\scannot\sbe\sreached.\r\n[21:37]kbk_You're\sright,\sit\swould\sbe\sbetter\sto\r\nisolate\sthe\scontinuation.\s\sBest\sto\slog\sa\sfeature\r\nrequest\son\sthat.\sI\stak\sit\sthat\sThe\sRight\sThing\swould\sbe\r\nto\smake\sthe\spart\sof\sgeturl\safter\sline\s372\sor\sso\sinto\sa\r\ncallback?\r\n[21:38]kbk_There\sdoesn't\sappear\sto\sbe\smuch\sstate\r\nbeing\spassed\sfrom\sbefore\sthat\spoint\sto\safter\sit,\sso\r\nthat\smightn't\seven\sbe\sthat\sdifficult.\r\n[21:43]schelteThis\sis\sonly\strue\sif\sboth\s-command\sand\r\n-timeout\sare\sspecified.\r\n[21:43]schelteIf\sonly\s-timeout\sis\sused,\sthe\scurrent\r\nmethod\swill\sstill\shave\sto\sbe\sused.\r\n[21:45]kbk_Right.\r\n[21:45]kbk_In\sthat\scase,\swe\sshould\sstill\sset\sup\sthe\r\ncallback,\sbut\sthen\sa\svwait\sis\sappropriate;\sthe\scaller's\r\nasked\sfor\sit.\r\n[21:48]schelteYes,\sit\sjust\smakes\sthe\scode\sa\sbit\smore\r\ncomplicated.\r\n[21:49]kbk_Not\seven\sthat\sbad\s-\sthe\scallback\sstructure\r\nwould\sbe\sthe\ssame\sin\sall\scases.\s\sIt's\sjust\sa\sdecision\r\nthat\sif\sthere\sis\sno\s-command,\sthen\svwait\sbefore\sreturning.
J icomment This\sabuse\sof\svwait,\sdisguised\sas\shttp::wait,\swas\sfixed\sin\s[c2dabc4396]\son\s2013-01-17.\r\n\r\nThe\sfix\swas\smerged\sinto\score-8-5-branch\sin\s[e47216d06d]\son\s2013-04-04,\sand\sinto\sthe\strunk\sin\s[b242bb3e4b]\son\s2013-01-23.\r\n\r\nThe\sbug\swas\sduplicated\sas\s[2911139]\swhich\sprovided\sthe\sfix.
J login kjnash
J mimetype text/plain
J resolution Fixed
J severity Minor
J status Closed
K 1253676fffffffffffffffffffffffffffffffff
U kjnash
Z 80e23bcff4ea49a641c586e03edfd942