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.
|