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

Add a test to tcp_stream that tests if priority events work #1646

Closed
wants to merge 1 commit into from

Conversation

poeschel
Copy link
Contributor

This adds a test to the tcp_stream to test if priority events are working. This only works on linux. Linux sets the EPOLLPRI event type for those events.
This works by sending a tcp packet with the MSG_OOB flag set.

@poeschel poeschel force-pushed the pollpri_test branch 2 times, most recently from f9959d4 to 94c99be Compare January 31, 2023 07:42
@poeschel
Copy link
Contributor Author

poeschel commented Jan 31, 2023

I updated the
cfg(unix) conditional compilation to
cfg(target_os = "linux") since I do not expect this to affect *BSDs.

This adds a test to the tcp_stream to test if priority events are
working. This only works on linux. Linux sets the EPOLLPRI event type
for those events.
This works by sending a tcp packet with the MSG_OOB flag set.
@poeschel
Copy link
Contributor Author

poeschel commented Feb 2, 2023

I cargo fmted the change.

@Thomasdezeeuw
Copy link
Collaborator

Closing in favour of #1647.

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.

2 participants