[CXP-527] Enable HTTP/2 PING keepalive in uhttp transport #844
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 195 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.316
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #844"
general
weight: 0.35
arreyder
Summary
ReadIdleTimeoutandPingTimeouton the HTTP/2 transport so idle streams emit PING frames before intermediary idle timeouts fire.http2.ConfigureTransporttohttp2.ConfigureTransportsto access thehttp2.Transport.Why
Connectors running behind an egress proxy fronted by an NLB with a short TCP idle timeout (60s in our environment) hit
http2: timeout awaiting response headersandconnection reset by peeron slow paginated upstream responses. TCP keepalive does not cover the failure window because the kernel does not probe a socket with an outstanding write — exactly the state while waiting on response headers. HTTP/2 PING frames flow over the TLS tunnel as application bytes, resetting the NLB idle timer.Caveats
ForceAttemptHTTP2: trueonly attempts* HTTP/2. If the upstream's ALPN doesn't negotiateh2, the connection falls back to HTTP/1.1 and this PING keepalive does not apply —net/http's HTTP/1.1 transport has no equivalent application-layer keepalive. Connectors talking to HTTP/1.1-only upstreams through the same NLB will still seeconnection reset by peeron slow paginated responses.PingTimeout = 15smatches the vendoredx/net/http2default; it is set explicitly as self-documentation alongsideReadIdleTimeout.Test plan
go build ./...andgo test ./pkg/uhttp/...(passing locally)make lint(no new findings; 4 pre-existing gosec findings remain)