Repository navigation
fleet(proxy): fail-fast (≤2s) transport, single-flight recovery, stamped broker start (#5758) - #6490
Conversation
…tamped broker start (#5758)
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 26 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5dedc35698
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5af36206dc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8242f6acc8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7eb4bbed99
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Closes the code slice of #5758 (task 10968): bound fleet-proxy recovery and stamp broker starts.
What changed
connect_tunnelnow runs under a total 2sTRANSPORT_DEADLINE— TCP connect viaconnect_timeoutper resolved address, and the CONNECT handshake re-arms its read timeout to the remaining budget on every byte, so a silent/trickling peer cannot stretch setup. The deadline bounds setup only: an established tunnel keeps the 660s read timeout (daemon exec allowance) unchanged.RecoveryGate— exactly one CONNECT in flight per port; concurrent callers wait (bounded) and, if that attempt failed, fail fast with its error instead of stampeding; on success they open serialized. Concurrent-open count peaks at 1 in tests.<ISO-8601 UTC> fleet proxy serve start implementation=fleet-proxy version=<crate> pool_size=<n> pid=<pid> socket=<path>— no credentials. Pool default stays 50; keepalive 180s and idle exit 3600s untouched.fleetselection inbroker_programis factored into the pure, testablebroker_program_in(dir); tests pin that a sibling fleet binary always wins over the Python broker spawn, and Python remains only for standalone builds with no sibling.Tests (oracle: the packet acceptance for task 10968)
DEFAULT_POOL_SIZEstill 50.cargo test -p fleet-proxy— 52 passed;cargo test -p fleet-queue --features client— broker-program tests pass (21 in the filtered client run).Out of scope (per packet)
Multiplexed transport (#5756), round-trip coalescing (#5757), pool/keepalive/idle policy changes, laptop-agent.py (not tracked here).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.