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 giampaolo.rodola
Recipients giampaolo.rodola, gvanrossum, josiah.carlson, loewis, neologix, pitrou
Date 2013-04-01.20:13:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364847206.91.0.224611519617.issue17561@psf.upfronthosting.co.za>
In-reply-to
Content
Being Tulip asynchronous I think that what it needs is an utility function which returns *multiple* sockets as are the addresses returned by getaddrinfo() and also possibly even disable the IPv4/6 dual stack in order to be consistent across all platforms.

After the sockets are returned they can be "registered" against the event loop as two separate entities such as, say, ("0.0.0.0", 8000) *and* ("::", 8000).
If you think this makes sense I can contribute something like this into Tulip, or I can bring it up on Tulip's ml and ask for other people's opinions.

My current recipe is different in that it provides a function which bind()s on one socket only and tries to enable the dual stack whenever possible in order to support IPv4 and IPv6 with a single socket.
In this it is similar to socket.create_connection() and clearly favors blocking socket usages (although it can also be used in non-blocking apps) which kind of represents the default for the stdlib.
History
Date User Action Args
2013-04-01 20:13:26giampaolo.rodolasetrecipients: + giampaolo.rodola, gvanrossum, loewis, pitrou, josiah.carlson, neologix
2013-04-01 20:13:26giampaolo.rodolasetmessageid: <1364847206.91.0.224611519617.issue17561@psf.upfronthosting.co.za>
2013-04-01 20:13:26giampaolo.rodolalinkissue17561 messages
2013-04-01 20:13:26giampaolo.rodolacreate