curl-library
Re: [PATCH v2] Add "Happy Eyeballs" for IPv4/IPv6.
Date: Mon, 28 Oct 2013 10:20:15 +0100
Paul Marks wrote:
> >> As an Internet Lorax, I beg you to reconsider this algorithm.
Yes, the current algorithm is quite naive. I'm working on an update.
> I then ran this on my router:
> $ iptables -I FORWARD -i eth1 -s 216.218.228.119 -j DROP
>
>
> And curl hangs waiting for the IPv4 response:
> $ src/curl -v http://ds.test-ipv6.com/ip/
> * About to connect() to ds.test-ipv6.com port 80 (#0)
> * Trying 216.218.228.119...
> * Trying 2001:470:1:18::119...
> * Adding handle: conn: 0x15548e0
> * Adding handle: send: 0
> * Adding handle: recv: 0
> * Curl_addHandleToPipeline: length: 1
> * - Conn 0 (0x15548e0) send_pipe: 1, recv_pipe: 0
> // -- At this point, it hangs for a couple minutes --
> * Whut?
Ah, interesting! Thank you for the bug report.
-- Björn ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2013-10-28