This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author MarkReedZ
Recipients MarkReedZ, asvetlov, yselivanov
Date 2021-09-07.23:52:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631058765.71.0.794565950389.issue45134@roundup.psfhosted.org>
In-reply-to
Content
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())
History
Date User Action Args
2021-09-07 23:52:45MarkReedZsetrecipients: + MarkReedZ, asvetlov, yselivanov
2021-09-07 23:52:45MarkReedZsetmessageid: <1631058765.71.0.794565950389.issue45134@roundup.psfhosted.org>
2021-09-07 23:52:45MarkReedZlinkissue45134 messages
2021-09-07 23:52:45MarkReedZcreate