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

feat(bindings): add set receive buffering to the rust bindings #4817

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

zz85
Copy link
Contributor

@zz85 zz85 commented Oct 3, 2024

Description of changes:

Add rust bindings connection.set_receive_buffering(enabled) which correspond to s2n_connection_set_recv_buffering.

The C api was added in #4485 that provides performance by reducing recv syscalls eariler, this change updates the s2n-tls rust api to enable this feature.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@jmayclin jmayclin left a comment

Choose a reason for hiding this comment

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

Not in scope for this PR, but I wonder if we should be turning this on by default for the rust bindings?

We could either make this the default everywhere for the rust bindings across a version bump, or maybe we could just make it the default for the tokio bindings? Since everyone using the tokio bindings has the same IO implementation.

@lrstewart lrstewart merged commit 6bb195c into aws:main Oct 3, 2024
38 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.

3 participants