Message308843
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. |
|
Date |
User |
Action |
Args |
2017-12-21 03:32:58 | Ron Frederick | set | recipients:
+ Ron Frederick, gvanrossum, vstinner, asvetlov, yselivanov |
2017-12-21 03:32:58 | Ron Frederick | set | messageid: <1513827178.44.0.213398074469.issue25749@psf.upfronthosting.co.za> |
2017-12-21 03:32:58 | Ron Frederick | link | issue25749 messages |
2017-12-21 03:32:57 | Ron Frederick | create | |
|