<i>async client sockets block for DNS</i> status still Open with 7 other changes
by
.
D 2022-09-08T16:47:51.478
J assignee aku
J closer nobody
J comment The\sgeturl\sdocumentation\sclaims\sthat,\sgeturl\swill\r\nreturn\simmediatly\swith\sa\stoken\sif\sthe\s-command\soption\r\nis\sinvoked.\r\nIf\sgeturl\scan\snot\smake\sthe\sinitial\ssocket\sconnection\sto\r\na\surl,\sit\sblocks\suntil\sthe\stimeout\sexpires\sand\scalls\r\nthe\s-command\sproc\sbefore\sgeturl\shas\sreturned\sa\stoken.\r\nThis\scauses\sat\sleast\sthe\sfollowing\stwo\sproblems:\r\n\r\n1.\sThe\sblock\scauses\sany\sfollowing\sgeturl\scalls\sto\shang\r\nbefore\sprocessing.\sThis\sdestroys\sthe\sasynchronious\r\noperation.\r\n\s\r\n2.\sIt\sinvokes\sthe\s-command\sproc\swith\sa\stoken\sthat\sis\sas\r\nyet\sunknown\sto\sthe\sgeneral\s\sprocessing\sloop.\r\n\r\[email protected]
J icomment I\shave\sadded\sa\sworkaround\sto\s8.7\s[608f2fbab4].\r\n\r\nThe\s::socket\scommand\sis\sevaluated\sasynchronously\sin\sanother\sthread\swhile\sthe\sscript\swaits\sin\sthe\sevent\sloop.\s\sBecause\sthe\sThread\spackage\smay\snot\sbe\spresent,\sthe\snew\sfacility\sis\soptional\sand\sis\sswitched\soff\sby\sdefault.\s\sIts\suse\sis\scontrolled\sby\sthe\snew\shttp::config\soption\s-threadlevel.\r\n\r\nThe\snew\scode\sruns\sin\san\sidletask\scoroutine.\sThis\suses\sa\strace\sto\sdetect\scommand\scompletion,\shence\savoiding\sthe\sstacking\sissues\sof\svwait.\r\n\r\nThe\ssocket\sreplacement\scommand\shttp::socket\sis\sshort,\sand\sif\sdesired\sit\scan\seasily\sbe\sreplaced\swith\sone\sthat\suses\sa\sdifferent\stechnique.
J login kjnash
J mimetype text/x-fossil-plain
J severity Minor
K 824251ffffffffffffffffffffffffffffffffff
U kjnash
Z 1005e57be78dd577618711167b523eb5