You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-clientArea: client.C-bugCategory: bug. Something is wrong. This is bad!E-easyEffort: easy. A task that would be a great starting point for a new contributor.
Thanks for the report! I agree completely with your assessment. Would you want to make a PR fixing this?
seanmonstar
added
A-client
Area: client.
E-easy
Effort: easy. A task that would be a great starting point for a new contributor.
C-bug
Category: bug. Something is wrong. This is bad!
labels
Sep 29, 2020
alexwl
added a commit
to alexwl/hyper
that referenced
this issue
Sep 29, 2020
A-clientArea: client.C-bugCategory: bug. Something is wrong. This is bad!E-easyEffort: easy. A task that would be a great starting point for a new contributor.
This example uses
reqwest
for simplicity:Error message:
IPv6-only domains (only
AAAA
DNS records, notA
) likeipv6.google.com
, are rare, but they do exist in the wild.The problem is that
split_by_preference
removes IPv6 addresses fromIpAddrs
when thelocal_addr
is IPv4:hyper/src/client/connect/dns.rs
Lines 203 to 225 in 523d66a
connect
panics when theself.addrs
is empty and theerr
isNone
:hyper/src/client/connect/http.rs
Lines 524 to 545 in 523d66a
I think
connect
should return an error instead of panicking when theerr
isNone
.For example:
The text was updated successfully, but these errors were encountered: