STINNER Victor <[email protected]> added the comment:
Ah, submit a new task after the manager shutdown fails with OSError(32, 'Broken
pipe'). Example:
---------------
from multiprocessing.managers import BaseManager
class MathsClass(object):
def foo(self):
return 42
class MyManager(BaseManager):
pass
MyManager.register('Maths', MathsClass)
if __name__ == '__main__':
manager = MyManager()
manager.start()
maths = manager.Maths()
maths.foo()
manager.shutdown()
try:
maths.foo()
finally:
manager.shutdown()
---------------
This example doesn't hang, but this issue is about concurrent.futures, not
multiprocessing.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue12364>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com