Add hack to workaround drain cancels

This commit is contained in:
Lonami Exo 2024-10-17 18:55:32 +02:00
parent 620f33dab3
commit 6ec366596b

View File

@ -278,6 +278,7 @@ class Sender:
async def _do_send(self) -> None:
if self._write_drain_pending:
self._on_net_write()
await self._writer.drain()
self._write_drain_pending = False
else: