[issue41794] Memory leak in asyncio server

2020-09-17 Thread Bale
Bale added the comment: Ok since nobody is replying, the bug seems to be that if the asyncio server sends data, and I do not use s.recv() to clear the buffer, and I use s.close() instead, a reference to handle_echo is kept and is never deleted. Using gc.collect() does delete the leaked

[issue41794] Memory leak in asyncio server

2020-09-15 Thread Bale
Bale added the comment: Also, if this is intended behavior and there is something that I am missing, you should really make it more clear in the documentation. In every project I found on github that uses asyncio.start_server, the bug exists

[issue41794] Memory leak in asyncio server

2020-09-15 Thread Bale
New submission from Bale : In the file I attached below is a pretty simple asyncio server, it is identical to the echo server on the documentation except it does not disconnect after echoing. When a connection is received, it creates an object called "test object" and the only

[issue41794] Memory leak in asyncio server

2020-09-15 Thread Bale
Change by Bale : -- components: asyncio nosy: EmperorBale, asvetlov, valid22, yselivanov priority: normal severity: normal status: open title: Memory leak in asyncio server type: behavior versions: Python 3.8 ___ Python tracker <ht