New submission from Andrew Grover <andy.gro...@gmail.com>:

RDS is a reliable datagram protocol used by Oracle clusters for inter-process 
communication. It is in the Linux kernel, and has a defined address family 
number. Its use is identical to UDP, except the address family is 21, and the 
type is SOCK_SEQPACKET.

So, what's this got to do with Python? :)

Apparently Modules/socketmodule.c getsockaddrarg() checks bind() args, and only 
allows known socket types to bind. Attempting to bind with an RDS socket fails.

It looks pretty straightforward to add support for a new family, but before 
doing so I wanted to check whether this was likely to be accepted, and also to 
ask if it wouldn't make more sense for getsockaddrarg() to not default to 
failing unknown families, but instead letting them through? If the params are 
wrong for a non-enumerated family, bind() will presumably return an error that 
the user will get.

----------
components: Extension Modules
messages: 98271
nosy: Andrew.Grover
severity: normal
status: open
title: Support needed for AF_RDS family
type: feature request
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7777>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to