Skip to content

Commit 4f6db54

Browse files
authored
Windows IPC defaults to wait forever (#5976)
This makes Windows more in line with the default behavior of Unix.
1 parent abd319a commit 4f6db54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/ipc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class IPCClient(IPCBase):
9393
def __init__(self, name: str, timeout: Optional[int]) -> None:
9494
super().__init__(name)
9595
if sys.platform == 'win32':
96-
timeout = timeout or 1000 # we need to set a timeout
96+
timeout = timeout or 0xFFFFFFFF # NMPWAIT_WAIT_FOREVER
9797
try:
9898
_winapi.WaitNamedPipe(self.name, timeout)
9999
except FileNotFoundError:

0 commit comments

Comments
 (0)