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 sebastien.bourdeauducq
Recipients gvanrossum, sebastien.bourdeauducq, vstinner, yselivanov
Date 2015-03-10.18:18:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426011521.84.0.690218000796.issue23630@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-03-10 18:18:41sebastien.bourdeauducqsetrecipients: + sebastien.bourdeauducq, gvanrossum, vstinner, yselivanov
2015-03-10 18:18:41sebastien.bourdeauducqsetmessageid: <1426011521.84.0.690218000796.issue23630@psf.upfronthosting.co.za>
2015-03-10 18:18:41sebastien.bourdeauducqlinkissue23630 messages
2015-03-10 18:18:41sebastien.bourdeauducqcreate