Message138767
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. |
|
Date |
User |
Action |
Args |
2011-06-21 00:42:35 | vstinner | set | recipients:
+ vstinner, pitrou, neologix |
2011-06-21 00:42:35 | vstinner | set | messageid: <1308616955.32.0.135782003461.issue12364@psf.upfronthosting.co.za> |
2011-06-21 00:42:34 | vstinner | link | issue12364 messages |
2011-06-21 00:42:34 | vstinner | create | |
|