Tcl Source Code

View Ticket
Login
Ticket UUID: b1add8f61fd4fb3d1a10e37660fa880e1ae12622
Title: coroutine "::http::dechunksockd72420" is already running
Type: Bug Created on: 2020-08-29 13:22:34
Submitter: kjnash Assigned to: nobody
Subsystem: 29. http Package Severity: Minor
Priority: 5 Medium Last modified: 2020-08-29 13:22:34
Status: Open Closed by: nobody
Resolution: None Closed on:
Version: http 2.9.5
Description:
When http::get is called with options -channel and -progress, but without option -handler, the -progress 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::dechunksockd72420" is already running

The bug causes test http11-2.4.2 to fail.

The bug is similar to [c2dc1da315] but is not so easy to fix because the code involves stacked channels.