Skip to content

Idle request-body deadlines outlive their handler #8106

Closed
koniecdev/LotroKoniecDev
#990

Description

@steadytao

Supersedes #8101 and #8103

IdleTimeoutReader can continue using its response controller after the handler which installed it has returned. Therefore HTTP/1.1 streaming responses get cancelled by a stale request-body deadline and HTTP/2 reverse-proxy body drains to panic when setting a deadline on released response-writer state.

Activity

  1. self-assigned this
    on Oct 2, 2026
  2. added
    bug 🐞
    on Oct 2, 2026
  3. Dean2026 commented on Oct 2, 2026

    @Dean2026
    Contributor

    I have a suggestion that we should disable read_boyd_idle and write_idle by default, because when we proxy the request to the LLM, a slow response is normal, and it should not be a breaking change.

  4. steadytao commented on Oct 2, 2026

    @steadytao
    MemberAuthor

    You misunderstand what these settings apply to. read_body_idle applies to the request upload while the write idle timeout is reset before each write and only bounds a write which is blocked on the client. Disabling them would restore the Slowloris exposure and would not address this lifecycle bug.

  5. Dean2026 commented on Oct 2, 2026

    @Dean2026
    Contributor

    Thanks for clarifying! I misunderstood the scope of these timeouts and confused slow upstream responses with stalled client I/O. I now understand why the fix should address the deadline lifecycle while keeping the timeout protections enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug 🐞

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions