Skip to content
Tcl Source Code Artifact [44eb8b8897]
Login

Artifact [44eb8b8897]

Artifact 44eb8b88971568abf87f87d03bbf1d554b1e90fc1fbf53a3546e0c7d39c0a733:

Ticket change [44eb8b8897] - New ticket [93551c12306c6813|93551c1230] <i>Document that http::geturl processes the event loop without -command</i>. by oehhar on 2020-09-07 16:11:57.
D 2020-09-07T16:11:57.581
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment The\shttp\spackage\sdescription\scontains\sthe\sparagraph:\r\n\r\nThe\s_::http::geturl_\scommand\sblocks\suntil\sthe\soperation\scompletes,\sunless\sthe\s-command\soption\sspecifies\sa\scallback\sthat\sis\sinvoked\swhen\sthe\sHTTP\stransaction\scompletes.\r\n\r\nIMHO\sit\sshould\sbe\smentioned\sthat\sthe\scommand\smay\sprocess\spending\sevents\swhen\snot\scalled\swith\s-command.\r\n\r\nAn\sexample\smay\sbe\sconstructed\sby\stwo\swish\sconsoles.\r\n\r\nThe\sserver\sdoes\snot\sanswer:\r\n<verbatim>\r\n%\ssocket\s-server\saccept\s30030\r\nsock040253F8\r\n2\s%\sproc\saccept\sargs\s{}\r\n</verbatim>\r\n\r\nThe\sclient\sasks\sthe\sserver:\r\n<verbatim>\r\n%\spackage\srequire\shttp\r\n2.9.1\r\n%\scatch\s{http::geturl\shttp://localhost:30030}\sh\r\n\r\n%\r\n</verbatim>\r\n\r\nOn\sthe\sconsole,\sone\smay\spress\s"Enter"\sto\senter\sadditional\scommands.\r\nThus,\sthe\shttp::geturl\scommand\sprobably\sexecuted\sa\svwait\scommand\sand\sthus\sprocesses\sevents.\r\n\r\nIMHO\sthe\sprogrammer\sshould\sknow\swhen\sa\scommand\smay\senter\sthe\sevent\sloop.\r\nIt\smay\salso\sbe\sstated,\sthat\sthe\scommand\swill\snot\swork\swithout\sevent\sloop,\seven\swithout\sthe\s-command\sswitch.\r\n\r\nSo,\sa\sproposed\sadditional\sremark\safter\sthe\supper\sparagraph\sis:\r\n\r\nNote:\sThe\sevent\squeue\sis\seven\sused\swithout\sthe\s-command\soption.\sAs\sa\sside\seffect,\sarbitrary\scommands\smay\sbe\sprocessed\swhile\shttp::geturl\sis\srunning.
J foundin 8.6
J is_private 0
J login oehhar
J priority 5\sMedium
J private_contact 0f366eb3e9e2fcab52b8ebacd197db9047186a5f
J resolution None
J severity Minor
J status Open
J submitter oehhar
J subsystem 29.\shttp\sPackage
J title Document\sthat\shttp::geturl\sprocesses\sthe\sevent\sloop\swithout\s-command
J type Bug
K 93551c12306c6813de27467b2de99db0a536492b
U oehhar
Z 523819648c9639347ca310aed1085d5a