[issue32710] test_asyncio: ProactorEventLoopTests sendfile tests leak references on Windows

STINNER Victor report at bugs.python.org
Tue Jan 8 08:12:47 EST 2019


STINNER Victor <vstinner at redhat.com> added the comment:

It took me 1 year, a few sleepless nights, multiple attempts to understand the leak, but I eventually found it! WSASend() doesn't release the memory if it fails immediately. I wrote PR 11469 to fix the memory leak. ReadFile() has the same bug, I also fixed it.

By the way, the _overlapped.Overlapped type has no traverse function: it may help the garbage collector to add once, since asyncio is famous for building reference cycles by design (Future.set_exception()).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32710>
_______________________________________


More information about the Python-bugs-list mailing list