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/windows-crash: fix crash due to unwrap on Windows #401

Merged
merged 2 commits into from Jun 9, 2016

Conversation

ustulation
Copy link
Contributor

@ustulation ustulation commented Jun 7, 2016

We run into cases every now and then when the remote address returned by miow crate is None. This usually happens during severing of connection and hence we are no longer interested in the remote address anyway. However mio crate tries to unwrap the returned option crashing in several of our usages (esp. when stressed). This fix aims to prevent that crash.

We run into cases every now and then when the remote address returned by miow crate is None. This usually happens during severing of connection and hence we are no longer interested in the remote address anyway. However mio crate tries to unwrap the returned option crashing in several of our usages (esp. when stressed). This fix aims to prevents that crash.
@ustulation ustulation mentioned this pull request Jun 7, 2016
I was compiling Windows fix on Linux (which is why it built successfully) and never noticed the unneeded semicolon :)
@carllerche carllerche merged commit c306980 into tokio-rs:master Jun 9, 2016
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.

None yet

2 participants