Overview
| Artifact ID: | 1ae8f42989a5bb5b350c7de93c6b06fa96ee2808e2811b3385ff8a7aed8d445b |
|---|---|
| Ticket: | 0c1e91d072c70f305933d98bc2b24e1c5bf8e48a
Problem with ::http::OpenSocket in HTTP module (library/http/http.tcl) since Tcl 9.0.x |
| User & Date: | serhiy.storchaka on 2026-10-14 15:15:32 |
Changes
- foundin changed to: "9.0.5, 9.1.0"
- icomment:
Reproduced with 9.0.5 and 9.1 (8.6 opens the socket synchronously in <nowiki>[http::geturl]</nowiki>, so it is not affected). Besides the error after <nowiki>[http::cleanup]</nowiki> (which also leaks the new socket), a plain <nowiki>[http::reset]</nowiki> while the socket command runs the event loop is not respected: the request continues and finally gets status "ok". Proposed fix in branch [/timeline?r=http-reset-during-open|http-reset-during-open]: after the socket command returns, http::OpenSocket checks whether the request has been reset or cleaned up, and if so closes the new socket and returns. Tests http-4.17 and http-4.18.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"