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

Make enabling GRO optional #7

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Make enabling GRO optional #7

merged 1 commit into from
Jul 30, 2024

Conversation

shutton
Copy link

@shutton shutton commented Jul 29, 2024

Enabling GRO by default removes its "drop in replacement" utility (against Tokio's UdpSocket), as API consumers have to expect potentially-merged packets; this doesn't always work with UDP, where the expectation may be that one receive operation returns one message.

This PR changes the API to explicitly require enabling this functionality on newly-wrapped sockets.

@shutton
Copy link
Author

shutton commented Jul 29, 2024

BTW, this is an API-breaking change for anyone who was expecting this behavior. Would suggest a corresponding version bump if accepted (e.g., to 0.8.0)

@leshow
Copy link
Owner

leshow commented Jul 30, 2024

good catch, thank you!

@leshow leshow merged commit f9c2dca into leshow:master Jul 30, 2024
8 checks passed
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