Repository navigation
net: a busy node closes gently, so a client that spoke first still reads Busy on Linux - #285
Merged
Merged
Conversation
Solrac's connection check sends initialize as soon as it is connected. A busy node closes with that request unread, so the kernel resets the connection, and Linux drops the Busy line the client hadn't read yet: Solrac's nightly CI read "connection reset by peer". This test is expected to fail on Linux until the fix that follows. No functional change. Bench: 767812 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ads Busy After Busy the node sends close_notify and shuts down writing only, reads and drops what the client sends until it hangs up or REFUSAL_TIMEOUT passes, then closes, on a thread of its own so the listener keeps accepting. Closing with the client's request unread made the kernel reset the connection, and on Linux the client then lost the Busy line. No functional change. Bench: 767812 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A busy node told a client so, then closed straight away. A client that had already sent a request (Solrac's connection check sends
initializeas soon as it is connected) left that request unread in the node's socket, so closing made the kernel send a reset, and Linux drops the data a client hasn't read yet when a reset arrives: the Busy line was lost and Solrac read "Connection reset by peer (os error 104)". macOS keeps the line, so this only showed in Solrac's Linux nightly (an_engine_serving_another_client_is_busy, cjus/chessgui).a_client_that_speaks_first_still_reads_busy(crates/net/tests/tls.rs): a second approved client sendsinitializeat once, waits 300 ms, then must read Busy. The first commit adds it alone, to show it fail on Linux CI.close_notify, then shuts down writing only), reads and drops what the client sends until it hangs up orREFUSAL_TIMEOUT(1 s) passes, then closes. That wait is on a thread of its own, so the listener keeps accepting.No functional change to search or evaluation; bench unchanged.
🤖 Generated with Claude Code