Skip to content

HttpTooLargeError after the response #437

Closed
@mikedilger

Description

@mikedilger

Ever since the new buffering code, I get HttpTooLargeErrors after almost every response. It is after the handler returns and the response has been sent, and so the site continues to function. But clearly something is amiss. The requests are rather normal small requests, nothing large, nothing fancy.

ERROR:hyper::server: request error = HttpTooLargeError

in server/mod.rs handle_connection() while keep_alive loop, the Request::new() calls http::parse_request() which fails with HttpTooLargeError at some point around this keep_alive loop, which means that read_into_buf() must have returned Ok(0) which means that self.cap < v.capacity(), but I haven't looked further as to why that is for small requests that are only handled once.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions