Skip to content

test(network): reduce backpressure test timing sensitivity - #150

Merged
Bronek merged 1 commit into
mainfrom
bronek/fix_test_tcp_multi_client_backpressure
Sep 4, 2026
Merged

test(network): reduce backpressure test timing sensitivity#150
Bronek merged 1 commit into
mainfrom
bronek/fix_test_tcp_multi_client_backpressure

Conversation

@Bronek

@Bronek Bronek commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Fix flaky test.

The multi-client backpressure test queued an 8 MiB payload for a receiver that initially pauses, then allowed five seconds for the queued payload and marker to arrive. Observed runs came close to that deadline, making the test sensitive to timing variation.

Reduce the payload to 2 MiB to provide more headroom. It remains much larger than the requested 1 KiB socket buffer, while the receiver delay continues to create backpressure.

Avoid the unconditional sleep after poll activity, reducing unnecessary delay while the connection is making progress. Also document that infrequent calls to poll_with can slow queued-write progress under backpressure.

The multi-client backpressure test queued an 8 MiB payload for a
receiver that initially pauses, then allowed five seconds for the queued
payload and marker to arrive. Observed runs came close to that deadline,
making the test sensitive to timing variation.

Reduce the payload to 2 MiB to provide more headroom. It remains much
larger than the requested 1 KiB socket buffer, while the receiver delay
continues to create backpressure.

Avoid the unconditional sleep after poll activity, reducing unnecessary
delay while the connection is making progress. Also document that
infrequent calls to poll_with can slow queued-write progress under
backpressure.

Assisted-by: Claude:claude-fable-5
Assisted-by: Codex:gpt-5.6-sol
@Bronek
Bronek requested review from a team and bartoszmodelski September 4, 2026 12:35
@Bronek
Bronek merged commit 8169f13 into main Sep 4, 2026
3 checks passed
@Bronek
Bronek deleted the bronek/fix_test_tcp_multi_client_backpressure branch September 4, 2026 13:36
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