Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Jul 24, 2012, 6:49 AM

Post #1 of 4 (175 views)
Permalink
[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager

Derek Wilson <jderekwilson [at] gmail> added the comment:

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>
<http://bugs.python.org/issue6056>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 24, 2012, 7:37 AM

Post #2 of 4 (178 views)
Permalink
[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager [In reply to]

Changes by Richard Oudkerk <shibturn [at] gmail>:


----------
nosy: +sbt

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6056>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 27, 2012, 6:57 AM

Post #3 of 4 (170 views)
Permalink
[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager [In reply to]

Roundup Robot <devnull [at] psf> added the comment:

New changeset 4e85e4743757 by Richard Oudkerk in branch '2.7':
Issue #6056: Make multiprocessing use setblocking(True) on the sockets it uses.
http://hg.python.org/cpython/rev/4e85e4743757

New changeset 290f04722be3 by Richard Oudkerk in branch '3.2':
Issue #6056: Make multiprocessing use setblocking(True) on the sockets it uses.
http://hg.python.org/cpython/rev/290f04722be3

New changeset f03839401420 by Richard Oudkerk in branch 'default':
Issue #6056: Make multiprocessing use setblocking(True) on the sockets it uses.
http://hg.python.org/cpython/rev/f03839401420

----------
nosy: +python-dev

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6056>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 29, 2012, 5:28 AM

Post #4 of 4 (168 views)
Permalink
[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager [In reply to]

Changes by Richard Oudkerk <shibturn [at] gmail>:


----------
resolution: -> fixed
stage: needs patch -> committed/rejected
status: open -> closed
type: crash -> behavior

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6056>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.