[New-bugs-announce] [issue45134] Protocol dealloc not called if Server is closed
Mark
report at bugs.python.org
Tue Sep 7 19:52:45 EDT 2021
New submission from Mark <markreed99 at gmail.com>:
If I create_server
server_coro = loop.create_server( lambda: self._protocol_factory(self), sock=sock, ssl=ssl)
server = loop.run_until_complete(server_coro)
Then connect and disconnect a client the protocol connection lost and dealloc are called.
If however I close the server with existing connections then protocol dealloc is never called and I leak memory due to a malloc in my protocol.c init.
server.close()
loop.run_until_complete(server.wait_closed())
----------
components: asyncio
messages: 401349
nosy: MarkReedZ, asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Protocol dealloc not called if Server is closed
type: resource usage
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45134>
_______________________________________
More information about the New-bugs-announce
mailing list