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

select.poll timeout is in milliseconds #26

Merged
merged 3 commits into from
Dec 12, 2018
Merged

select.poll timeout is in milliseconds #26

merged 3 commits into from
Dec 12, 2018

Conversation

minrk
Copy link
Owner

@minrk minrk commented Dec 12, 2018

select.select uses seconds, which is what self.flush_timeout used

I believe this is the cause of the occasional failures after switching to select.poll

select was in seconds, so we need to multiply by 1000 here
flushing stdout doesn't guarantee its arrival before stderr because they could arrive in the same tic
@minrk minrk merged commit 75ee16a into master Dec 12, 2018
@minrk minrk deleted the poll-timeout branch December 12, 2018 13:12
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.

1 participant