Skip to content
Tcl Source Code History Of Ticket ff82755e15f2e116
Login

History Of Ticket ff82755e15f2e116

Artifacts Associated With Ticket ff82755e15f2e116

  1. Ticket change [00cb6599f4] (rid 162494) by oehhar on 2018-04-19 06:55:53:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      When the socket command within http::geturl raises an error, the stack trace is missing.
      
      <verbatim>
      % package require http
      2.8.12
      % package require tls
      1.8.0
      % http::register https 443 [list ::tls::socket -tls1] ; # parameter missing to -tls1
      443 {::tls::tls_socket -tls1}
      % http::geturl https://www.hibc.de/
      expected boolean value but got "-async"
      % set errorInfo
      expected boolean value but got "-async"
          while executing
      "http::geturl https://www.hibc.de/"
      </verbatim>
      
      The error message was quite surprising to me, as "http::geturl https://www.hibc.de/" has no argument "-async".
      
      After this checkin [a3bf2db1fd], the error reporting was enhanced to contain full stack trace to show the origin of the issue:
      
      <verbatim>
      % package require http
      2.8.13
      % package require tls
      1.8.0
      % http::register https 443 [list ::tls::socket -tls1] ; # parameter missing to -tls1
      443 {::tls::socket -tls1}
      % http::geturl https://www.hibc.de/
      expected boolean value but got "-async"
      % set errorInfo
      expected boolean value but got "-async"
          while executing
      "tls::import sock0551AF48 -server 0 -tls1 -async"
          ("eval" body line 1)
          invoked from within
      "eval [list tls::import] $chan $iopts"
          invoked from within
      "::tls::socket -tls1 -async www.hibc.de 443"
          ("eval" body line 1)
          invoked from within
      "eval $defcmd $sockopts $targetAddr"
          invoked from within
      "http::geturl https://www.hibc.de/"
      </verbatim>
      
    5. foundin initialized to: "8.6.8"
    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:
      http::geturl socket error reporting lacks stack trace
      
    16. type initialized to: "Bug"
  2. Ticket change [5bd7fa4d0c] (rid 162496) by oehhar on 2018-04-19 06:57:26:

    1. closedate changed to: "2458227.78989475"
    2. closer changed to: "oehhar"
    3. login: "oehhar"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"