Overview
| Artifact ID: | c803b86bc1cfba8288be48ef2f8891f4e78b9a53 |
|---|---|
| Ticket: | 2914500fffffffffffffffffffffffffffffffff
bad handling of errors in http::geturl callback |
| User & Date: | dvrsn on 2009-12-15 00:55:36 |
Changes
- assignee changed to: "patthoyts"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dvrsn"
- subsystem changed to: "29. http Package"
- title changed to: "bad handling of errors in http::geturl callback"
- type changed to: "Bug"