Skip to content

test(integration): add rust test for prefer low latency#5684

Merged
kaukabrizvi merged 10 commits intoaws:mainfrom
kaukabrizvi:prefer_low_latency
Dec 31, 2025
Merged

test(integration): add rust test for prefer low latency#5684
kaukabrizvi merged 10 commits intoaws:mainfrom
kaukabrizvi:prefer_low_latency

Conversation

@kaukabrizvi
Copy link
Copy Markdown
Contributor

@kaukabrizvi kaukabrizvi commented Dec 23, 2025

Goal

Add Rust integration tests to verify s2n_connection_prefer_low_latency() results in small TLS record sizes.

Why

This is a wire-format behavior that should be validated end-to-end as an integration test.

How

Enable prefer_low_latency on s2n-tls, perform a large data transfer with OpenSSL as the peer, record application data traffic, and assert that TLS records are small when the feature is enabled. Both client and server roles are covered.

Callouts

Separate test cases are included for TLS 1.2 and TLS 1.3 because the negotiated protocol version affects per-record overhead and therefore the observed application-data record sizes. Distinct tests ensure we assert the correct bounds for each protocol and avoid masking regressions by using a single upper bound limit.

Testing

This is a test, it runs in the PR workflow as part of the IntegRustNix batch.

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

@github-actions github-actions bot added the s2n-core team label Dec 23, 2025
@kaukabrizvi kaukabrizvi marked this pull request as ready for review December 29, 2025 20:13
@kaukabrizvi kaukabrizvi marked this pull request as draft December 29, 2025 22:36
@kaukabrizvi kaukabrizvi marked this pull request as ready for review December 29, 2025 23:19
@kaukabrizvi kaukabrizvi changed the title test(integration): add rust integration test for prefer low latency test(integration): add rust test for prefer low latency Dec 30, 2025
Copy link
Copy Markdown
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.

Should we also delete the corresponding IntegV2 test as part of this PR?

@kaukabrizvi kaukabrizvi added this pull request to the merge queue Dec 31, 2025
Merged via the queue into aws:main with commit 253e1ab Dec 31, 2025
54 checks passed
@kaukabrizvi kaukabrizvi deleted the prefer_low_latency branch December 31, 2025 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants