Author neologix
Recipients neologix, vstinner
Date 2011-12-19.09:16:53
SpamBayes Score 5.34066e-10
Marked as misclassified No
Message-id <1324286214.6.0.994753300421.issue13565@psf.upfronthosting.co.za>
In-reply-to
Content
I think this could be due to the multiprocessing manager's server socket backlog value, which is a little too low: by default, it's set to 5, and the tests launch up to 3 threads and 3 processes in parallel, so if we're unlucky with the scheduling, we could get some ECONNREFUSED.
Unless otherwise specified, the server uses Unix domain sockets: on Linux, when the server's socket backlog is full, connect() blocks, which could explain why it doesn't happen on Linux. It would be nice to check the behavior in case of socket backlog full on affected OSes (for example OS X or FreeBSD).

Here's a run on Linux:
"""
$ ./python ~/test_backlog.py 
0
1
2
3
4
[blocks]
"""

If we get ECONNREFUSED on OS X or FreeBSD, then there's a chance it's the culprit. If not, well, no idea what's going on :-)
History
Date User Action Args
2011-12-19 09:16:54neologixsetrecipients: + neologix, vstinner
2011-12-19 09:16:54neologixsetmessageid: <1324286214.6.0.994753300421.issue13565@psf.upfronthosting.co.za>
2011-12-19 09:16:54neologixlinkissue13565 messages
2011-12-19 09:16:53neologixcreate