Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

ConnectionResetError after certain number of HTTP/1.1 requests #398

Open
@nkemnitz

Description

@nkemnitz

Ran into an issue while testing/benchmarking several hundreds of HTTP/1.1 HEAD requests, which would always result in a ConnectionResetError after the exact same number of requests.

Investigating the issue shows that it always occurs when the BufferedSockets _remaining_capacity is getting close to 0. More specifically, it happens whenever there are still a few bytes_in_buffer when fill is called on the almost "exhausted" buffer, as it will be the case here:
https://github.com/Lukasa/hyper/blob/18b629b8487169870235fe13387e2ae03c178b9f/hyper/http11/connection.py#L284-L288

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