mirror of
https://github.com/caddyserver/caddy.git
synced 2026-06-29 05:12:01 +00:00
Bracket the pump's lifetime with Host.countRequest(±1) and incInFlightRequest/decInFlightRequest so WT sessions participate in the same accounting as the normal proxy path: - MaxRequests gating (Upstream.Full) now blocks WT sessions past the cap, instead of silently failing open. - LeastConn / FirstAvailable selection sees WT load, instead of seeing busy upstreams as idle. - Admin /reverse_proxy/upstreams reports WT sessions under num_requests. Integration test holds an upstream session open via a standalone WT server, polls the admin API to assert num_requests increments during the session and drops back to 0 after close. |
||
|---|---|---|
| .. | ||
| caddyfile_adapt | ||
| testdata | ||
| acme_test.go | ||
| acmeserver_test.go | ||
| autohttps_test.go | ||
| caddyfile_adapt_test.go | ||
| caddyfile_test.go | ||
| forwardauth_test.go | ||
| h2listener_test.go | ||
| handler_test.go | ||
| intercept_test.go | ||
| leafcertloaders_test.go | ||
| listener_test.go | ||
| map_test.go | ||
| mockdns_test.go | ||
| pki_test.go | ||
| proxyprotocol_test.go | ||
| reverseproxy_test.go | ||
| sni_test.go | ||
| stream_test.go | ||
| webtransport_test.go | ||