Artifacts Associated With Ticket 93551c1230
Ticket change [44eb8b8897] (rid 186376) by oehhar on 2020-09-07 16:11:57:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
The http package description contains the paragraph: The _::http::geturl_ command blocks until the operation completes, unless the -command option specifies a callback that is invoked when the HTTP transaction completes. IMHO it should be mentioned that the command may process pending events when not called with -command. An example may be constructed by two wish consoles. The server does not answer: <verbatim> % socket -server accept 30030 sock040253F8 2 % proc accept args {} </verbatim> The client asks the server: <verbatim> % package require http 2.9.1 % catch {http::geturl http://localhost:30030} h % </verbatim> On the console, one may press "Enter" to enter additional commands. Thus, the http::geturl command probably executed a vwait command and thus processes events. IMHO the programmer should know when a command may enter the event loop. It may also be stated, that the command will not work without event loop, even without the -command switch. So, a proposed additional remark after the upper paragraph is: Note: The event queue is even used without the -command option. As a side effect, arbitrary commands may be processed while http::geturl is running. - foundin initialized to: "8.6"
- is_private initialized to: "0"
- login: "oehhar"
- priority initialized to: "5 Medium"
- private_contact initialized to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "oehhar"
- subsystem initialized to: "29. http Package"
- title initialized to:
Document that http::geturl processes the event loop without -command
- type initialized to: "Bug"
Ticket change [f2d15bf45f] (rid 188600) by oehhar on 2020-11-16 14:07:53:
- closedate changed to: "2459170.08880863"
- closer changed to: "oehhar"
- icomment: "Committed by checkin [d5e8ce86f0]."
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "oehhar"