← Back to Pull requests

http-netty: send the body when no 100 (Continue) arrives within a timeout #3702

Closed
unknown closed this pull request without merging on Nov 11, 2026 21:40 UTC
View on GitHub
unknown unknown commented on Oct 27, 2026 18:18 UTC
Author

Motivation

A client that sends Expect: 100-continue waits for the server before sending the body. If no response comes, the request stalls. RFC 9110 says the client should not wait indefinitely.

Modifications

  • Add SingleAddressHttpClientBuilder.expectContinueTimeout(Duration), default 1 second. Duration.ZERO sends the body without waiting, as if there were no Expect header.

  • HTTP/1.1 clients pair a response with its request only on the final response, so extra or late 1xx responses can't affect another request.

  • RetryingHttpRequesterFilter no longer retries a 417 received after a streaming body was sent.
  • Result

    Requests no longer stall when the server never sends 100 (Continue).

    Behavior changes

    1. An Expect: 100-continue request sends its body after 1 second if the server hasn't responded.
    2. JavaNetSoTimeoutHttpConnectionFilter fails that wait only if its timeout is shorter.

    Diff: 119 lines (+89 / -30) across 1 files Reviewer: idelpivnitskiy Review duration: 21801m
    All Vouch review confidence checks passed
    Residual risk 0.12 = Change Risk (0.32) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.32 · 119 lines diff across 1 files
    0.32
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Shallow Review Depth shallow_review_depth
    0.289
    Diff Size diff_size
    0.286
    Real PR Conversation Timeline
    1 comments
    "Review active on #3702"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 31.6% (LOW) · Higher = larger blast radius
    31.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 12.5% · Safe to merge
    12.5%