parent
773a66bc5b
commit
abf8534ea9
|
@ -31,7 +31,7 @@ This example shows how to use sanic with Python 3.7, to be precise: how to retri
|
||||||
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
os.remote(server_socket)
|
os.remove(server_socket)
|
||||||
finally:
|
finally:
|
||||||
sock.bind(server_socket)
|
sock.bind(server_socket)
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ This example shows how to use sanic with Python 3.7, to be precise: how to retri
|
||||||
srv_coro = app.create_server(
|
srv_coro = app.create_server(
|
||||||
sock=sock,
|
sock=sock,
|
||||||
return_asyncio_server=True,
|
return_asyncio_server=True,
|
||||||
asyncio_server_args=dict(
|
asyncio_server_kwargs=dict(
|
||||||
start_serving=False
|
start_serving=False
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user