Add ability to use string path for path
instead of forcing user to manually create socket.
This commit is contained in:
parent
07d54455f5
commit
18b7f24a8f
|
@ -567,7 +567,12 @@ def serve(host, port, request_handler, error_handler, before_start=None,
|
|||
debug=debug,
|
||||
)
|
||||
|
||||
server_coroutine = loop.create_server(
|
||||
if isinstance(sock, str):
|
||||
_create_server = loop.create_unix_server
|
||||
else:
|
||||
_create_server = loop.create_server
|
||||
|
||||
server_coroutine = _create_server(
|
||||
server,
|
||||
host,
|
||||
port,
|
||||
|
|
Loading…
Reference in New Issue
Block a user