New submission from twisteroid ambassador <twisteroid.ambassa...@gmail.com>:
Sometimes when a socket transport under ProactorEventLoop is writing while the peer closes the connection, asyncio logs an AssertionError. Attached is a script that fairly reliably reproduces the behavior on my computer. This is caused by _ProactorBasePipeTransport._force_close() being called between two invocations of _ProactorBaseWritePipeTransport._loop_writing(), where the latter call asserts self._write_fut has not changed after being set by the former call. ---------- components: asyncio files: test_proactor_force_close.py messages: 319302 nosy: asvetlov, twisteroid ambassador, yselivanov priority: normal severity: normal status: open title: ProactorEventLoop raises AssertionError versions: Python 3.6, Python 3.7, Python 3.8 Added file: https://bugs.python.org/file47639/test_proactor_force_close.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33833> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com