[issue18751] A manager's server never joins its threads

Gregory P. Smith report at bugs.python.org
Thu Jun 2 17:36:42 EDT 2016


Gregory P. Smith added the comment:

Capturing some notes from looking at this after Dan Sully asked me questions about the issue during today's pycon sprints:

within multiprocessing/managers.py serve_forever():

the accepter thread is an infinite loop. i think this issue also wants to join() on the threads that the accepter spawns. which also implies they need to be kept track of and that we should change the accepter's while True: into a "while some event that indicates it should exit is not set"...

but we'd also not want a pool keeping track of accepter's infinitely spawned threads to grow forever, so something needs to effectively garbage collect those periodically.

----------
nosy: +gregory.p.smith
versions: +Python 3.5, Python 3.6 -Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18751>
_______________________________________


More information about the Python-bugs-list mailing list