Skip to content

Stop the dropped-connection test racing the kernel - #5

Merged
ellykits merged 1 commit into
mainfrom
network-test-race
Sep 16, 2026
Merged

ellykits merged 1 commit into
mainfrom
network-test-race

Conversation

@ellykits

Copy link
Copy Markdown
Owner

NetworkPrinterTest.reportsFailureWhenThePrinterDropsTheConnection wrote 16 MB to a socket whose peer closes with SO_LINGER 0, expecting the RST to interrupt the write. Where the kernel's socket buffers absorb the whole payload the write finishes instead and the test fails — it failed CI on main and one local run in three. The server socket now takes a small receive buffer before bind, so the payload cannot drain and the RST always lands mid-write. The test ran green four times in a row afterwards.

The version moves to 1.0.0-alpha05: alpha04 was uploaded to the Central Portal from a tag cut before the code-page fix, so those coordinates cannot be reused.

Verification: spotlessCheck, :spooler:desktopTest 75/75, and the Android, JS and wasm compiles.

The test wrote 16 MB and expected the peer's RST to interrupt the write,
but where socket buffers absorb the payload the write finishes and the
test fails: it failed CI on main and one local run in three. A small
receive buffer, set before bind, keeps the payload from draining.

Version moves to 1.0.0-alpha05: alpha04 was uploaded from a tag cut
before the code-page fix and cannot be reused.
@ellykits
ellykits merged commit 75ccf60 into main Sep 16, 2026
1 check passed
@ellykits
ellykits deleted the network-test-race branch September 16, 2026 04:58
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.

1 participant