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

Ensure errors on TCP writes happen on Windows #725

Merged
merged 1 commit into from Sep 13, 2017

Conversation

Projects
None yet
2 participants
@alexcrichton
Copy link
Contributor

alexcrichton commented Sep 5, 2017

Previously an error in a TCP write might accidentally get covered up as the
write function didn't check for State::Error. This updates that logic to
propagate the error out to ensure if we see an error it goes upwards.

Closes tokio-rs/tokio-core#243

@alexcrichton alexcrichton force-pushed the alexcrichton:windows-write-error branch 2 times, most recently from e9c0bb3 to d196831 Sep 5, 2017

Ensure errors on TCP writes happen on Windows
Previously an error in a TCP write might accidentally get covered up as the
`write` function didn't check for `State::Error`. This updates that logic to
propagate the error out to ensure if we see an error it goes upwards.

@alexcrichton alexcrichton force-pushed the alexcrichton:windows-write-error branch from d196831 to 14ed3b5 Sep 13, 2017

@alexcrichton alexcrichton requested a review from carllerche Sep 13, 2017

@alexcrichton alexcrichton merged commit 5b9d20c into carllerche:master Sep 13, 2017

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@alexcrichton alexcrichton deleted the alexcrichton:windows-write-error branch Sep 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.