Message237791
I would like to be able to bind asyncio TCP servers to an arbitrary list of hosts, not just either one host or all interfaces.
I propose that the host parameter of create_server and start_server can be a list of strings that describes each host. Sockets are created for the set of all addresses of all specified hosts. The list may also contain None, or the empty string, in which case all interfaces are assumed.
If a string or None is passed directly, the behavior is unchanged - so this should not break compatibility.
I can submit a patch if this feature is approved. |
|
Date |
User |
Action |
Args |
2015-03-10 18:18:41 | sebastien.bourdeauducq | set | recipients:
+ sebastien.bourdeauducq, gvanrossum, vstinner, yselivanov |
2015-03-10 18:18:41 | sebastien.bourdeauducq | set | messageid: <1426011521.84.0.690218000796.issue23630@psf.upfronthosting.co.za> |
2015-03-10 18:18:41 | sebastien.bourdeauducq | link | issue23630 messages |
2015-03-10 18:18:41 | sebastien.bourdeauducq | create | |
|