Skip to content

Connection reset on "payload too large" (413) response from target server #546

@mdmower-csnw

Description

@mdmower-csnw

When a user attempts to upload a file and the target server responds with HTTP status 413 (payload too large) before reading the entire request body, the proxy often causes "connection reset" instead of forwarding the response to the user.

I observed this while proxying an IIS site but was able to create a minimal reproduction using an express server as well. See repo Proxy connection reset on content too big for code and reproduction steps.

I've reproduced this in Chrome and Firefox on Windows.

Expected result:
image

Actual result:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions