[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

Yury Selivanov report at bugs.python.org
Sun Jun 11 03:58:53 EDT 2017


Yury Selivanov added the comment:

> It's interesting to see how `_process_write_backlog` gets called after `_finalize`. One option would be to simply guard `transport.write` with `if transport is not None`, but I'm afraid that we'll only mask the bug then.

OTOH we weren't setting the transport to None before, we were just closing it. Is setting it to None really necessary?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29406>
_______________________________________


More information about the Python-bugs-list mailing list