[issue37389] Memory Leak - ThreadingUDPServer

2019-06-24 Thread Daniel W Forsyth
New submission from Daniel W Forsyth : After putting a basic ThreadingUDPServer under load (500 messages per/second) I noticed that after a night it was consuming a lot of RAM given it does nothing with the data. On inception, I noticed the _thread count inside the server was growing

[issue37389] Memory Leak - ThreadingUDPServer

2019-06-24 Thread Daniel W Forsyth
Daniel W Forsyth added the comment: The only way I could figure out to control it was to do this in a thread; for thread in server._threads: # type: Thread if not thread.is_alive(): server._threads.remove(thread) Shouldn't the server process do this