New submission from Sebastien Bourdeauducq:

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.

----------
components: asyncio
messages: 237791
nosy: gvanrossum, haypo, sebastien.bourdeauducq, yselivanov
priority: normal
severity: normal
status: open
title: support multiple hosts in create_server/start_server
type: enhancement
versions: Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23630>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to