Skip to content
Tcl Source Code View Ticket
Login

View Ticket

coroutine "::http::dechunksockd72420" is already running

Openb1add8f61fd4fb3d1a10e37660fa880e1ae12622Created 6 years agoUpdated 6 years ago
Descriptionplain2020-08-29 13:22:34
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.
Log in (anonymous is fine) to add a comment.