8000 Implement overlapped I/O and timeouts on server side Windows IPC by emmatyping · Pull Request #6148 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Implement overlapped I/O and timeouts on server side Windows IPC #6148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jan 8, 2019
Merged
Prev Previous commit
Next Next commit
Handle buffer being None
  • Loading branch information
emmatyping committed Jan 6, 2019
commit 8803d7300dbb69a346b7256d65b99edf34eb5223
4 changes: 3 additions & 1 deletion mypy/ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ def read(self) -> bytes:
ov.cancel()
raise
_, err = ov.GetOverlappedResult(True)
bdata.extend(ov.getbuffer())
buff = ov.getbuffer()
if buff:
bdata.extend(buff)
if err == 0:
# we are done!
break
Expand Down
0