Artifacts Associated With Ticket 1449233fffffffffffffffffffffffffffffffff
Ticket change [bd272d972e] (rid 101867) by andreas_kupries on 2006-03-13 23:42:46:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Assume set token [http::geturl -timeout XXXX badurl] The timeout will trigger, because of the badurl. The "http::geturl" creates a timer to handle the -timeout, with the id stored in state(after). See line 447 of http.tcl. Later on it does a [http::wait] on the token to wait for the connection. See line 479ff. When the timer triggers it calls [http::reset]. See line 447. This deletes the token, i.e. the state array. See line 196ff. The [http::wait] the geturl is in (line 479) then breaks out of the [vwait]-eventloop it is in and returns $state(status), see line 956. Except that the state is already gone due to the aforementioned [reset], therefore boom. Note also, even if the [http::wait] would not throw an error then [http::geturl] itself would, because immediately after the [http::wait] it also tries to access the state array by itself, to determine what went wrong (line 479ff). A possible solution is to use [info exists] to check if the state is gone, and react accordingly (http::wait returns nothing, http::geturl then knows that a timeout happened).
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "andreas_kupries"
- subsystem initialized to: "29. http Package"
- title initialized to: "Bug when -timeout specified and triggered"
- type initialized to: "Bug"
Ticket change [044161ae05] (rid 119963) by dgp on 2006-03-14 10:31:37:
- icomment:
Logged In: YES user_id=80530 see also 513385 and 705956
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [cc961fa8f0] (rid 95726) by patthoyts on 2008-02-22 18:23:03:
- closedate changed to: "2008-02-22T11:23:03"
- closer changed to: "patthoyts"
- icomment:
Logged In: YES user_id=202636 Originator: NO Same as 1818565
- login: "patthoyts"
- mimetype: "text/plain"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
- username: "patthoyts"