Skip to content
Tcl Source Code History Of Ticket 93551c1230
Login

History Of Ticket 93551c1230

Artifacts Associated With Ticket 93551c1230

  1. Ticket change [44eb8b8897] (rid 186376) by oehhar on 2020-09-07 16:11:57:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. 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.
      
    5. foundin initialized to: "8.6"
    6. is_private initialized to: "0"
    7. login: "oehhar"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "oehhar"
    14. subsystem initialized to: "29. http Package"
    15. title initialized to:
      Document that http::geturl processes the event loop without -command
      
    16. type initialized to: "Bug"
  2. Ticket change [f2d15bf45f] (rid 188600) by oehhar on 2020-11-16 14:07:53:

    1. closedate changed to: "2459170.08880863"
    2. closer changed to: "oehhar"
    3. icomment: "Committed by checkin [d5e8ce86f0]."
    4. login: "oehhar"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "oehhar"