report at bugs
Jul 24, 2012, 6:49 AM
Post #1 of 4
Derek Wilson <jderekwilson [at] gmail> added the comment:
[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager
Thanks, Jim, here is an updated patch.
1) I feel like it is clearly not-a-feature. Currently 2.7 crashes if remote managers are used and socket.setdefaulttimeout is anything other than None. Crashing seems bad and all this does is keep multiprocessing connection sockets non-blocking even if a default timeout is specified (so it maintains current behavior rather than crashing).
2) This problem is still evident on 2.7, 3.2 and 3.3 beta 1. This patch is against the current dev tip as of a few days ago.
3) here it is!
4) I agree that setblocking is more clear. I made the change.
My test modifications cover the entire suite twice, once without a default timeout and once with. This may be excessive? I'm not sure where non-blocking sockets might pop up as an issue since there is C code that relies on blocking sockets and I haven't dug that deep.
Added file: http://bugs.python.org/file26497/mp6056fix.patch
Python tracker <report [at] bugs>
Python-bugs-list mailing list