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 Ron Frederick
Recipients Ron Frederick, asvetlov, gvanrossum, vstinner, yselivanov
Date 2017-12-21.03:32:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513827178.44.0.213398074469.issue25749@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks. Unfortunately, in the case of the way SSH listeners with dynamic ports, the protocol only allows a single port number to be returned. So, when binding on multiple interfaces there's a requirement that the SAME port be chosen for all of the socket bindings, which can't easily be done today with a single asyncio.Server object. That's a bit off-topic for this issue, though.

Regarding exposing the sockets, it would never really make sense to directly call send() on a listening socket, and I can see why it also wouldn't make sense to allow calling accept(). I'm really not sure there's ANY call other than getsockaddr() that really makes sense here, though, so perhaps it would be better to evolve the API in AbstractServer into returning a list of sockaddr tuples rather than sockets.
History
Date User Action Args
2017-12-21 03:32:58Ron Fredericksetrecipients: + Ron Frederick, gvanrossum, vstinner, asvetlov, yselivanov
2017-12-21 03:32:58Ron Fredericksetmessageid: <1513827178.44.0.213398074469.issue25749@psf.upfronthosting.co.za>
2017-12-21 03:32:58Ron Fredericklinkissue25749 messages
2017-12-21 03:32:57Ron Frederickcreate