Skip to content

hyper-util 0.1.13 breaks reqwest for networks where IPv6 returns a connection reset #3900

Closed
hyperium/hyper-util
#200
@konstin

Description

@konstin

Version
hyper-util 0.1.13

Platform
mac OS 15.5 arm64

Description

See astral-sh/uv#13831

The user has a network where IPv6 results in "Connection reset by peer". After we upgraded hyper-util from 0.1.12 to 0.1.13, uv, which uses reqwest, stopped working for them. Downgrading to 0.1.12 fixes the problem, so I assume hyperium/hyper-util#194 is the cause.

$ curl -6 https://pypi.org/
curl: (35) Recv failure: Connection reset by peer
$ uv add numpy # Connects to pypi.org with a retry layer.
[...]
  Caused by: Request failed after 3 retries
  Caused by: error sending request
  Caused by: client error (Connect)
  Caused by: Connection reset by peer (os error 54) 

Unfortunately, this seems to be particular to this user's network connection, so I can't reproduce this locally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug. Something is wrong. This is bad!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions