Skip to content

UnixReady::priority conflicts with Ready::writable (on Linux at least)#897

Merged
Thomasdezeeuw merged 4 commits intotokio-rs:masterfrom
elmarco:priority
Mar 7, 2019
Merged

UnixReady::priority conflicts with Ready::writable (on Linux at least)#897
Thomasdezeeuw merged 4 commits intotokio-rs:masterfrom
elmarco:priority

Conversation

@elmarco
Copy link
Contributor

@elmarco elmarco commented Dec 11, 2018

fixes #896

Copy link
Collaborator

@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.

If you add the regression test I think this is good to merge.

On Linux,
Ready::from(UnixReady::priority()).is_writable() = true

Use a separate bit instead.

Fixes:
tokio-rs#896

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Check basic bit conflicts by comparing the sum and the or of all known
flags. Add a regression test for tokio-rs#896.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
@carllerche
Copy link
Member

@Thomasdezeeuw feel free to merge whenever.

@Thomasdezeeuw
Copy link
Collaborator

Will merge once CI is ready.

@Thomasdezeeuw Thomasdezeeuw merged commit 3aa20a8 into tokio-rs:master Mar 7, 2019
@Thomasdezeeuw
Copy link
Collaborator

Thanks @elmarco.

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.

UnixReady::priority conflicts with Ready::writable (on Linux at least)

3 participants