This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author underrun
Recipients Jim.Jewett, asksol, jnoller, ryles, underrun
Date 2012-07-24.13:49:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343137763.3.0.577629146271.issue6056@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-07-24 13:49:23underrunsetrecipients: + underrun, jnoller, ryles, asksol, Jim.Jewett
2012-07-24 13:49:23underrunsetmessageid: <1343137763.3.0.577629146271.issue6056@psf.upfronthosting.co.za>
2012-07-24 13:49:22underrunlinkissue6056 messages
2012-07-24 13:49:22underruncreate