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

net: add epollhup test #3898

Merged
merged 9 commits into from Jun 30, 2021
Merged

net: add epollhup test #3898

merged 9 commits into from Jun 30, 2021

Conversation

Darksonn
Copy link
Contributor

Fixes: #3879

@Darksonn Darksonn added A-tokio Area: The main tokio crate M-net Module: tokio/net labels Jun 28, 2021
@Darksonn
Copy link
Contributor Author

It seems like the behavior is different on mac.

Copy link
Contributor

@Thomasdezeeuw Thomasdezeeuw left a comment

Choose a reason for hiding this comment

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

LGTM.

@Darksonn have you mean able to reproduce the issue in #3879? Or is this just checking all errors. @bnoordhuis suggested in #3879 (comment) that this error might not be fatal.

@Darksonn
Copy link
Contributor Author

Well, the test I added fails without the change. I didn't try other things than the test.

Copy link
Member

@carllerche carllerche left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@carllerche
Copy link
Member

We should probably do the same w/ TCP?

@Darksonn
Copy link
Contributor Author

We already do this for TCP as seen here, however when I added the test for TCP it didn't seem to work.

@carllerche
Copy link
Member

The TCP test might require setting linger to 0. Either way, we can merge this I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-net Module: tokio/net
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UnixStream::connect() doesn't handle EPOLLHUP
3 participants