Repository navigation
docs(daemon): record where the SIGNAL_CHECK_INTERVAL accept poll went - #7745
Merged
Merged
Conversation
The eleven docs that cite SIGNAL_CHECK_INTERVAL were line-accurate when written, but the code moved twice since: PR #5908 lowered the single-listener WouldBlock sleep from 500ms to 50ms and deleted the constant, and PR #7681 replaced accept-side sleep-polling with a readiness wait (poll(2) in PollAcceptEngine, kevent(2) behind the opt-in macos-kqueue feature in KqueueAcceptEngine) in server_runtime/accept_engine.rs. Bring the living documents back in line with the tree: - kqueue-pipeline-audit: mark the two daemon-accept surface rows migrated (KQ-S.1 landed via #6217/#7681) instead of describing the deleted sleep-poll loops as the current implementation. - daemon-tpc-benchmark-plan: bound SIGTERM-to-drain latency by the accept engine's 50ms/100ms signal-check cadence, and mark tracker #1683 completed. - daemon-event-loop-multiplexing: add a status note to the follow-up list and tick #1683, which #5908/#7681 closed. - daemon-thread-per-connection-scalability: mark tracker #1683 completed in the references list. - dis-4a, dis-3, daemon-coldstart-profile, daemon-coldstart-rebench: record that DIS-4.a R1 has since landed, next to the sections that rank it as the top open bottleneck; retarget the DIS-2 file index entry that still pointed the constant at listener.rs. The audit bodies keep their historical line citations: they describe the tree that was measured. daemon-thread-per-connection.md, async-daemon-listener.md (pinned 'Last verified: 2026-05-01'), and daemon-async-listener-rfc.md are left untouched as dated snapshots.
oferchen
enabled auto-merge (squash)
September 8, 2026 00:02
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.
What
Eleven docs cite
SIGNAL_CHECK_INTERVAL. All were line-accurate when written; the code then moved twice: PR #5908 lowered the single-listenerWouldBlocksleep 500ms -> 50ms and deleted the constant, and PR #7681 removed accept-side sleep-polling entirely —PollAcceptEngineparks in onepoll(2)over every listener fd (READINESS_WAIT_MILLIS: u16 = 50, accept_engine.rs:60), and the opt-inmacos-kqueueengine parks inkevent(2)with a 100ms timeout (accept_engine.rs:331). The acceptor threads and the dual-stack MPSC fan-in are gone.Per-site classification, not a blanket sweep
Each of the 11 files was classified before editing:
macos-kqueuefeature, gated by KQ-8); the TPC benchmark plan's SIGTERM-drain metric is re-bounded by the engines' 50ms/100ms cadence; tracker Fix Windows GNU exports and improve coverage enforcement #1683 ("lower SIGNAL_CHECK_INTERVAL") is marked completed in the three audits that list it — superseded by fix(daemon): default listener to IPv4-only matching upstream #5908 + refactor(daemon): one poll(2) accept engine, so the accept path holds no threads #7681; DIS-4.a R1, DIS-3 contributor 1, DIS-2 §6.1 and DIS-7.a §7.1 each get a short landed-since note next to the section that ranks the accept sleep as the top open bottleneck; DIS-2's file index retargets the constant fromlistener.rstoaccept_engine.rs.One correction of substance: the docs implied the kqueue accept path is live on macOS. It is behind the default-off
macos-kqueuefeature (crates/daemon/Cargo.tomldefault = []); the default macOS build usesPollAcceptEngine. The updated rows say so explicitly.Gates
Docs-only (zero
.rsfiles touched). Whole-tree rustfmt viatools/ci/check_rustfmt_all.pyon the pinned 1.88.0 toolchain: clean.