Artifacts Associated With Ticket 2914500fffffffffffffffffffffffffffffffff
Ticket change [c803b86bc1] (rid 122036) by dvrsn on 2009-12-15 00:55:36:
- assignee initialized to: "patthoyts"
- cmimetype initialized to: "text/plain"
- 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" - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dvrsn"
- subsystem initialized to: "29. http Package"
- title initialized to: "bad handling of errors in http::geturl callback"
- type initialized to: "Bug"
Ticket change [25f7f14495] (rid 88258) by dvrsn on 2012-01-28 03:15:48:
- 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.
- login: "dvrsn"
- mimetype: "text/plain"
- username: "dvrsn"
- icomment:
Ticket change [4e8b7c86ba] (rid 125662) by kennykb on 2012-01-28 03:25:30:
- closedate changed to: "2012-01-27T20:25:30"
- closer changed to: "kennykb"
- icomment:
Since the submitter reports this is no longer an issue, I'm closing it out as a duplicate.
- login: "kennykb"
- mimetype: "text/plain"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
- username: "kennykb"