[issue11711] socketpair does not accept AF_INET family argument [Linux]

2011-03-29 Thread Cloudberry

Cloudberry  added the comment:

Thank you for clarifications. Closing it as an invalid issue, as this is (not) 
working as expected. Apologies for the noise.

--
resolution:  -> invalid
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11711] socketpair does not accept AF_INET family argument [Linux]

2011-03-29 Thread Ross Lagerwall

Ross Lagerwall  added the comment:

It is noted in the Linux man page for socketpair:

On Linux, the only supported domain for this call is AF_UNIX (or synonymously, 
AF_LOCAL). (Most implementations have the same restriction.)

--
nosy: +rosslagerwall

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11711] socketpair does not accept AF_INET family argument [Linux]

2011-03-29 Thread Cloudberry

New submission from Cloudberry :

System where issue was reproduced is Ubuntu 10.04 32-bit with python 2.6.5

Expected behavior for socket.socketpair as per the docstring: "The arguments 
are the same as for socket() except the default family is AF_UNIX if defined on 
the platform; otherwise, the default is AF_INET."

Executing socket.socketpair() or socket.socketpair(socket.AF_UNIX) runs fine. 
However, executing socket.socketpair(socket.AF_INET) throws socket.error with 
Errno 95 "Operation not supported".

It seems either the docstring is off suggesting non-default family can be 
selected, or the AF_INET option is broken.

--
components: Library (Lib)
files: socketpair_runme.py.bz2
messages: 132504
nosy: Cloudberry
priority: normal
severity: normal
status: open
title: socketpair does not accept AF_INET family argument [Linux]
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file21455/socketpair_runme.py.bz2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com