Skip to content

Conversation

@weissi
Copy link
Member

@weissi weissi commented Apr 17, 2018

Motivation:

PR #286 started processing EPOLLHUPs. Sadly epoll also immediately
throws EPOLLHUP at you if you register a socket that isn't either
connected or listening. This fixes two more instances of this problem.

Modifications:

made sure sockets that are registered are either listening or
connected (and before we let the Selector wait for events)

Result:

tests should be more reliable

Motivation:

PR apple#286 started processing EPOLLHUPs. Sadly epoll also immediately
throws EPOLLHUP at you if you register a socket that isn't either
connected or listening. This fixes two more instances of this problem.

Modifications:

made sure sockets that are registered are either listening or
connected (and before we let the Selector wait for events)

Result:

tests should be more reliable
@tomerd
Copy link
Member

tomerd commented Apr 17, 2018

@swift-nio-bot test this please

Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

LGTM, merge when ready.

@weissi
Copy link
Member Author

weissi commented Apr 18, 2018

@swift-nio-bot test this please

@weissi
Copy link
Member Author

weissi commented Apr 18, 2018

(build timed out before)

@Lukasa Lukasa merged commit 17af3c7 into apple:master Apr 18, 2018
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Apr 19, 2018
@Lukasa Lukasa added this to the 1.5.0 milestone Apr 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants