Add live counter of requests routed to the gateway#37
Open
gclaramunt wants to merge 1 commit into
Open
Conversation
The proxy engine counts each request rewritten to the gateway (a shared AtomicU64 in GateHandler/RunningEngine) and surfaces it on ProxyState. Home shows 'N requests routed' while the proxy is on, refreshed by a 1s poll. The Linux control protocol carries the count back from the helper daemon; gateway_requests is serde(default) so a newer GUI stays compatible with an older daemon still running from a prior session.
4c49b4c to
a8544cf
Compare
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.
Counts requests the proxy rewrites to the gateway and shows them live on Home (
N requests routed, mono tabular numerals, ~1s poll while the popover is open).AtomicU64incremented on therewrite->gatewaybranch; exposed viaRunningEngine::gateway_requests().ProxyState.gateway_requestspopulated on macOS/Windows/Linux status paths.#[serde(default)]for forward/backward daemon compatibility.Note: only counts traffic routed through the Connect proxy and rewritten to the gateway; tools pointed directly at the gateway URL bypass the proxy and aren't counted.