Replies: 6 comments 1 reply
-
hey @forthrin that's definitely a bug. Will have a look. |
Beta Was this translation helpful? Give feedback.
-
Thanks for addressing this quickly. The gem is updated to 1.1.1, and the issue seems to be gone, at first glance at least. PS! IPv6 is disabled in my macOS network settings. Why do simultaneous IPv6 requests still kick in? Or this is unrelated? |
Beta Was this translation helpful? Give feedback.
-
Since I got the bug, which you write that it was related to simultaneous v4/v6 connection attempts, I assumed the library must have tried to do both v4 and v6. However, the test returns false, so why did I get the bug if only v4 was run on my system? require "socket"
pp(list = Socket.ip_address_list)
pp(list.any? { |a| a.ipv6? && !a.ipv6_loopback? && !a.ipv6_linklocal? && !a.ipv6_unique_local? })
[#<Addrinfo: 127.0.0.1>,
#<Addrinfo: ::1>,
#<Addrinfo: fe80::1%lo0>,
#<Addrinfo: fe80::****:****:****:****%ap1>,
#<Addrinfo: 192.168.1.***>,
#<Addrinfo: fe80::****:****:****:****%awdl0>,
#<Addrinfo: fe80::****:****:****:****%llw0>,
#<Addrinfo: fe80::****:****:****:****%utun0>,
#<Addrinfo: fe80::****:****:****:****%utun1>,
#<Addrinfo: fe80::****:****:****:****%utun2>,
#<Addrinfo: fe80::****:****:****:****%utun3>,
#<Addrinfo: fe80::****:****:****:****%utun4>]
false This corresponds with the output of The following does not seem to change the result:
This is not a practical problem in itself, so asking just out of curiosity. |
Beta Was this translation helpful? Give feedback.
-
The bug was not related with Happy Eyeballs. The description contains 2 separate commit messages, you might be reading the unrelated one. |
Beta Was this translation helpful? Give feedback.
-
Ah... Sorted, then. |
Beta Was this translation helpful? Give feedback.
-
@error=#<HTTPX::ReadTimeoutError: Timed out after 2 seconds>
Beta Was this translation helpful? Give feedback.
All reactions