Skip to content

Commit 911485d

Browse files
authored
Fix Windows sock share (#2635)
1 parent 4744a89 commit 911485d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sanic/server/runners.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def _serve_http_1(
200200
asyncio_server_kwargs = (
201201
asyncio_server_kwargs if asyncio_server_kwargs else {}
202202
)
203-
if OS_IS_WINDOWS:
203+
if OS_IS_WINDOWS and sock:
204204
pid = os.getpid()
205205
sock = sock.share(pid)
206206
sock = socket.fromshare(sock)

0 commit comments

Comments
 (0)