Closed fantix closed 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().
resume_writing()
loop._queue_write()
loop._queued_streams
loop._exec_queued_writes()
Fixes #496
In
resume_writing()
, writing to another transport may callloop._queue_write()
hence mutatingloop._queued_streams
, it'll be an error ifresume_writing()
was called from within iteratingloop._queued_streams
inloop._exec_queued_writes()
.Fixes #496