Skip to content
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

Fix IPC timeout incoherence #6146

Merged
merged 1 commit into from
Jan 5, 2019
Merged

Fix IPC timeout incoherence #6146

merged 1 commit into from
Jan 5, 2019

Conversation

msullivan
Copy link
Collaborator

Make IPCClient's timeout parameter be consistently seconds,
rather than seconds on unix and milliseconds on windows.

Make IPCClient's timeout parameter be consistently seconds,
rather than seconds on unix and milliseconds on windows.
@msullivan msullivan requested a review from ethanhs January 5, 2019 01:48
@msullivan
Copy link
Collaborator Author

Aha, and this does actually fix the dmypy timeout flake. While most dmypy commands default to not specifying a timeout, stop uses a 5 second timeout. When interpreted as 5ms, failing is pretty plausible.

I validated that this was the issue by adding time.sleep(1) before ConnectedNamedPipe in IPCServer.__enter__. It failed, and the timeout fix fixes it.

@msullivan
Copy link
Collaborator Author

So I think this lays to rest #5983!

Copy link
Collaborator

@ethanhs ethanhs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ethanhs ethanhs merged commit 566b301 into master Jan 5, 2019
@ethanhs ethanhs deleted the fix-timeouts branch January 5, 2019 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants