Skip to content

Added SO_PRIORITY socket option (#587) #588

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

Merged
merged 1 commit into from
Jun 2, 2025

Conversation

boris-n
Copy link
Contributor

@boris-n boris-n commented Jun 1, 2025

No description provided.

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.

Can we have a test for this?

src/socket.rs Outdated
/// For more information about this option, see [`set_priority`].
///
/// [`set_priority`]: Socket::set_priority
#[cfg(any(target_os = "linux", target_os = "android", target_os = "fuchsia"))]
Copy link
Collaborator

Choose a reason for hiding this comment

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

This needs the all feature if it's not available on Windows and macOS as well. See the cfg that uses features = "all" on some other methods.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • feature = "all" has been added
  • a test has been added

@Thomasdezeeuw Thomasdezeeuw merged commit 0c9efe1 into rust-lang:master Jun 2, 2025
46 of 47 checks passed
@Thomasdezeeuw
Copy link
Collaborator

Thanks @boris-n

@boris-n boris-n deleted the so_priority branch June 2, 2025 13:11
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