[issue23630] support multiple hosts in create_server/start_server
Yury Selivanov
report at bugs.python.org
Wed Sep 2 16:38:28 CEST 2015
Yury Selivanov added the comment:
> - accept host and port arguments being sequences and then we bind to all host:port combinations. Like if len(host) == N and len(port) == M, we bind to N*M sockets.
I can't think of a real life example for this. But if you need that, you can always implement that on top of function that accepts multiple (host,port) pairs.
> - accept host and port arguments being sequences and allow repetitions and bind to host:port couples from zip(host, port).
I'm not sure I like this either. This breaks one value `(h,p)` into two values, and passes them in separate collections to separated arguments. Too complex.
My proposal is to allow the following:
create_server(protofac, [(h1,p1),(h2,p2)])
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23630>
_______________________________________
More information about the Python-bugs-list
mailing list