New submission from Mark <markree...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue45134> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com