Overview
| Artifact ID: | 1fcacb12c7ba86b32a3685c9b070ac8795efc689 |
|---|---|
| Ticket: | 513385ffffffffffffffffffffffffffffffffff
error in timeout destroys token |
| User & Date: | dgp on 2004-05-26 11:25:37 |
Changes
- icomment:
Logged In: YES user_id=80530 only in the general sense that the cleanup logic of the http package is an utter mess, and both these problems arise from that. However, the specific problem in this report is that the state array is unset by [http::reset], so whenever both the -timeout and -command options are in use, and the timeout triggers and the -command callback returns an error, then the [vwait] within [http::wait] will return with the state array unset. This will cause the command return $state(status) on line 848 to raise an error about being unable to read the variable that's been unset. Any code not calling [http::wait] but relying on another event loop may have similar problems, if it is not prepared for the possibility that the state array may be unset. Bug 705956 doesn't appear to be about having the state array unset at all. The -timeout option is not involved. In contrast, it assumes the state array still exists, and the value of $state(status) is "error" and the issue is whether some cleanup logic based on that value has been inverted. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"