Skip to content

Commit

Permalink
Fix Windows sock share (#2635)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Dec 18, 2022
1 parent 4744a89 commit 911485d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic/server/runners.py
Expand Up @@ -200,7 +200,7 @@ def _serve_http_1(
asyncio_server_kwargs = (
asyncio_server_kwargs if asyncio_server_kwargs else {}
)
if OS_IS_WINDOWS:
if OS_IS_WINDOWS and sock:
pid = os.getpid()
sock = sock.share(pid)
sock = socket.fromshare(sock)
Expand Down

0 comments on commit 911485d

Please sign in to comment.