Fix loop.create_server to accept a list of hosts

This commit is contained in:
Yury Selivanov 2016-01-21 13:33:53 -05:00
parent 43d5238c12
commit 080180fb98
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class _TestTCP:
try:
srv = await asyncio.start_server(
handle_client,
'127.0.0.1', 0,
('127.0.0.1', 'localhost'), 0,
family=socket.AF_INET,
loop=self.loop)

View File

@ -779,7 +779,7 @@ cdef class Loop:
return self._getaddrinfo(host, port, family, type, proto, flags, 1)
@aio_coroutine
async def create_server(self, protocol_factory, str host, int port,
async def create_server(self, protocol_factory, host, int port,
*,
int family=uv.AF_UNSPEC,
int flags=uv.AI_PASSIVE,