Tcl Source Code

View Ticket
Login
2020-12-31
15:35 • Closed ticket [c2dc1da315]: coroutine "::http::1EventCoroutine" is alr... artifact: 888dceef7c user: kjnash
2020-08-29
13:31 • Add attachment http-2.9.5.tm--for-8.7 to ticket [c2dc1da315f3df3b|c2dc1... artifact: 1750720b4c user: kjnash
13:30 • Add attachment http-2.9.5.tm--for-8.6 to ticket [c2dc1da315f3df3b|c2dc1... artifact: 02a6534766 user: kjnash
13:22 • New ticket [b1add8f61f] coroutine "::http::dechunksockd72420" is alrea... artifact: 24c0fbcc33 user: kjnash
2020-08-10
17:36 • Ticket [c2dc1da315] coroutine "::http::1EventCoroutine" is already run... artifact: 65369a8acc user: kjnash
17:26 • New ticket [c2dc1da315]. artifact: 4efdf2d88e user: kjnash

Ticket UUID: c2dc1da315f3df3b62cae1f80862ecaf3c2d7ca9
Title: coroutine "::http::1EventCoroutine" is already running
Type: Bug Created on: 2020-08-10 17:26:13
Submitter: kjnash Assigned to: nobody
Subsystem: 29. http Package Severity: Important
Priority: 5 Medium Last modified: 2020-12-31 15:35:12
Status: Closed Closed by: kjnash
Resolution: Fixed Closed on: 2020-12-31 15:35:12
Version: http 2.9
Description:
When http::get is called with option -handler or -progress, the callback command is called by the coroutine that processes "fileevent readable" events on the HTTP socket.

If the callback command enters the event loop, this allows another "fileevent readable" event to be processed, resulting in a recursive call of the coroutine handler, and a bgerror such as

coroutine "::http::1EventCoroutine" is already running

Thanks to Alexandru Dadalau for the bug report.

See branch bug-c2dc1da315 for work on a fix.
User Comments:
kjnash added on 2020-12-31 15:35:12:
Fix in branch bug-c2dc1da315-for-8-6 merged into core-8-6-branch and thus core-8-branch.

Attachments: