Skip to content

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