Fix spec deviations and implement graceful shutdown drain
- Replace determine_if_https() with ProxyState.is_https field so X-Forwarded-Proto reflects the listener's protocol instead of guessing from the Host header - Return ProxyError::BadGateway with host/upstream context for non-connect upstream errors instead of bare StatusCode::BAD_GATEWAY - Implement InFlightCounter with RAII guard for tracking in-flight connections - Add drain_in_flight() to wait for connections to complete on shutdown, with configurable timeout before forcing exit - Mark review/core-components and review/integration-readiness as complete
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
id: review/core-components
|
||||
name: Review core component implementations for spec conformance and pattern consistency
|
||||
status: pending
|
||||
status: complete
|
||||
depends_on: [config/static-config, config/dynamic-config, config/validation, config/cli-parsing, tls/manual-tls, tls/acme-tls, proxy/host-routing, proxy/headers-and-forwarding, proxy/error-responses]
|
||||
scope: moderate
|
||||
risk: low
|
||||
|
||||
Reference in New Issue
Block a user