MagicStack / uvloop

Ultra fast asyncio event loop.
Apache License 2.0
10.45k stars 548 forks source link

bugfix: write to another transport in resume_writing() fails #498

Closed fantix closed 2 years ago

fantix commented 2 years ago

In resume_writing(), writing to another transport may call loop._queue_write() hence mutating loop._queued_streams, it'll be an error if resume_writing() was called from within iterating loop._queued_streams in loop._exec_queued_writes().

Fixes #496