Skip to content

Hyper client fails if the header isn't fully received in the first read #389

@r-darwish

Description

@r-darwish

Some HTTP servers do not send the entire HTTP header in a single chunk. Hyper assumes that the entire header is received when calling fill_buf, which isn't always the case.

Running the client example in the documentation against a Flask test server causes it to panic:

thread '

' panicked at 'called Result::unwrap() on an Err value: HttpTooLargeError'

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