Message138767
| Author |
vstinner |
| Recipients |
neologix, pitrou, vstinner |
| Date |
2011年06月21日.00:42:34 |
| SpamBayes Score |
2.7256735e-09 |
| Marked as misclassified |
No |
| Message-id |
<1308616955.32.0.135782003461.issue12364@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|