homepage

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 Claudiu.Popa
Recipients Claudiu.Popa, pitrou
Date 2012年04月03日.09:28:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1333445322.44.0.595815869021.issue14482@psf.upfronthosting.co.za>
In-reply-to
Content
This is related to http://bugs.python.org/issue14151. 
When using an AF_UNIX address with multiprocessing.connection.Listener or Client, the following error will occur, due to the fact that AF_UNIX is not present in socket module.
>>> import multiprocessing.connection as con
>>> con.Listener('/var/a.pipe')
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "C:\Python31\lib\multiprocessing\connection.py", line 97, in __init__
 self._listener = SocketListener(address, family, backlog)
 File "C:\Python31\lib\multiprocessing\connection.py", line 216, in __init__
 self._socket = socket.socket(getattr(socket, family))
AttributeError: 'module' object has no attribute 'AF_UNIX'
The attached patch fixes this issue, the check is done in the newly added _validate_family, where a similar check is done for AF_PIPE on Unix systems.
History
Date User Action Args
2012年04月03日 09:28:42Claudiu.Popasetrecipients: + Claudiu.Popa, pitrou
2012年04月03日 09:28:42Claudiu.Popasetmessageid: <1333445322.44.0.595815869021.issue14482@psf.upfronthosting.co.za>
2012年04月03日 09:28:41Claudiu.Popalinkissue14482 messages
2012年04月03日 09:28:41Claudiu.Popacreate

AltStyle によって変換されたページ (->オリジナル) /