Skip to content
Tcl Source Code History Of Ticket 2914500
Login

History Of Ticket 2914500

Artifacts Associated With Ticket 2914500

  1. Ticket change [c803b86bc1] (rid 122036) by dvrsn on 2009-12-15 00:55:36:

    1. assignee initialized to: "patthoyts"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      If an error occurs in a http::geturl callback proc after the token has already been cleaned up, you get a very confusing stack trace.  There is no issue with cleaning up the token in a callback or with raising an error in a callback (although perhaps this case should be reported as a background error), only when the token is cleaned up and then the callback does not complete successfully.
      
      Example:
      package require http
      
      proc bgerror {e} {
          puts "bgerror:\n$::errorInfo"
          exit
      }
      
      proc handle {tok} {
          http::cleanup $tok
          stupid error  
      }   
      
      http::geturl http://www.yahoo.com/ -command handle
      
      set done 0
      after 10000 {set done 1}
      vwait done
      
      bgerror:
      can't read "state(sock)": no such element in array
          while executing
      "CloseSocket $state(sock) $token"
          (procedure "Finish" line 12)
          invoked from within
      "Finish $token $err"
          (procedure "http::Event" line 154)
          invoked from within
      "http::Event sock6 ::http::1"
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dvrsn"
    10. subsystem initialized to: "29. http Package"
    11. title initialized to: "bad handling of errors in http::geturl callback"
    12. type initialized to: "Bug"
  2. Ticket change [25f7f14495] (rid 88258) by dvrsn on 2012-01-28 03:15:48:

    1. icomment:
      I think this is essentially a dup of 705956 which was fixed a year or so before this was filed, but I might not have used the head code at the time.
      
      In any case, it doesn't seem to be a problem in current releases.
      
      
    2. login: "dvrsn"
    3. mimetype: "text/plain"
    4. username: "dvrsn"
  3. Ticket change [4e8b7c86ba] (rid 125662) by kennykb on 2012-01-28 03:25:30:

    1. closedate changed to: "2012-01-27T20:25:30"
    2. closer changed to: "kennykb"
    3. icomment:
      Since the submitter reports this is no longer an issue, I'm closing it out as a duplicate.
      
      
    4. login: "kennykb"
    5. mimetype: "text/plain"
    6. resolution changed to: "Duplicate"
    7. status changed to: "Closed"
    8. username: "kennykb"