Skip to content
Tcl Source Code Artifact [3355fb6c18]
Login

Artifact [3355fb6c18]

Artifact 3355fb6c18eb0a60037658766b1903150d694b9f:

Ticket change [3355fb6c18] - New ticket [1253676fffffffff|1253676fff] <i>http::geturl should not vwait when used asynchronously</i>. by sbron on 2005-08-07 20:03:55.
D 2005-08-07T20:03:55
J assignee hobbs
J cmimetype text/plain
J comment When\shttp::geturl\sis\scalled\swith\s-command\sand\s-timeout\n>\s0\sit\sshould\snot\svwait\sfor\sthe\ssocket\sconnection\sto\sbe\nestablished.\sInstead\sit\sshould\sreturn\simmediately\sto\nthe\scaller\sand\sdo\sany\sfurther\sactions\sin\sevent\shandlers.\n\nSee\salso\shttp://wiki.tcl.tk/1255\n\nHere's\sthe\soriginal\sdiscussion\son\sthe\sTcler's\schat\nabout\sthis\ssubject:\n[21:30]schelteHow\ssneaky,\shttp::geturl\suses\sa\svwait\s\n[21:32]kbk_schelte\s-\sBut\syou\scan\sget\sit\sto\sreturn\nimmediately\sby\sgiving\sit\s-command\n[21:33]schelteThat's\swhat\sI'm\sdoing.\sIt\sstill\suses\nvwait\sfor\sopening\sthe\ssocket\sin\s-async\smode\s...\n[21:35]kbk_Not\sif\s-timeout\sis\s0.\n[21:36]schelteYeah,\sbut\sof\scourse\sit\sisn't.\sCan't\nhang\sup\sthe\sprogram\sbecause\sa\ssite\scannot\sbe\sreached.\n[21:37]kbk_You're\sright,\sit\swould\sbe\sbetter\sto\nisolate\sthe\scontinuation.\s\sBest\sto\slog\sa\sfeature\nrequest\son\sthat.\sI\stak\sit\sthat\sThe\sRight\sThing\swould\sbe\nto\smake\sthe\spart\sof\sgeturl\safter\sline\s372\sor\sso\sinto\sa\ncallback?\n[21:38]kbk_There\sdoesn't\sappear\sto\sbe\smuch\sstate\nbeing\spassed\sfrom\sbefore\sthat\spoint\sto\safter\sit,\sso\nthat\smightn't\seven\sbe\sthat\sdifficult.\n[21:43]schelteThis\sis\sonly\strue\sif\sboth\s-command\sand\n-timeout\sare\sspecified.\n[21:43]schelteIf\sonly\s-timeout\sis\sused,\sthe\scurrent\nmethod\swill\sstill\shave\sto\sbe\sused.\n[21:45]kbk_Right.\n[21:45]kbk_In\sthat\scase,\swe\sshould\sstill\sset\sup\sthe\ncallback,\sbut\sthen\sa\svwait\sis\sappropriate;\sthe\scaller's\nasked\sfor\sit.\n[21:48]schelteYes,\sit\sjust\smakes\sthe\scode\sa\sbit\smore\ncomplicated.\n[21:49]kbk_Not\seven\sthat\sbad\s-\sthe\scallback\sstructure\nwould\sbe\sthe\ssame\sin\sall\scases.\s\sIt's\sjust\sa\sdecision\nthat\sif\sthere\sis\sno\s-command,\sthen\svwait\sbefore\sreturning.\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter sbron
J subsystem 29.\shttp\sPackage
J title http::geturl\sshould\snot\svwait\swhen\sused\sasynchronously
J type RFE
K 1253676fffffffffffffffffffffffffffffffff
U sbron
Z 0cc90aeb1f3d62e99b3fea88cf412897