cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: bug in curl when using threaded resolver but no IPv6 since 7.34.0, all connections time out

From: Fabian Frank <fabian.frank.de_at_gmail.com>
Date: Wed, 8 Jan 2014 10:07:33 -0800

Sorry I forgot the -v (lowercase v) output.

$ ./src/curl --connect-timeout 5 -v www.yahoo.com
* Rebuilt URL to: www.yahoo.com/
* Hostname was NOT found in DNS cache
* Adding handle: conn: 0x7fc484008200
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* Connection timed out after 5522 milliseconds
* Closing connection 0
curl: (28) Connection timed out after 5522 milliseconds

Regards,
Fabian

On Jan 8, 2014, at 9:50 AM, Fabian Frank <fabian.frank.de_at_gmail.com> wrote:

> Thanks for investigating the issue, Daniel.
>
> On Jan 8, 2014, at 4:16 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:
>> On Wed, 8 Jan 2014, Eric Hassold wrote:
>>
>>> Thanks for this quick follow up. We actually based our builds and tests on a updated checkout of your repo from today, and issue can be reproduced systematically with any checkout after commit 02fbc26d59c59170fd..., including curl-7_34_0 and up to latest commit (01513161830d4533cf66738c2a3cd48e88468b76).
>>
>> Okay, thanks. Unfortunately I've rebuilt as well with --disable-ipv6 and threaded resolver but it works just fine to do:
>>
>> $ src/curl --connect-timeout 5 www.yahoo.com
>>
>> ... on my Linux box.
>
> As I wrote in my initial e-mail, I also unfortunately failed to reproduce the bug on Ubuntu 32bit and 64bit. It only reproduced on MacOS and Android for us.
>
>> Can you tell me something more about your environment, including your full curl -V output for your test build.
> Here are the detail of a MacOS build and box that fails. Build was configured using
> $ ./configure --enable-static --disable-shared --disable-ldap --enable-threaded-resolver --disable-ipv6
>
> $ sw_vers
> ProductName: Mac OS X
> ProductVersion: 10.9.1
> BuildVersion: 13B42
> $ uname -a
> Darwin palmtree 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
> $ git branch
> * master
> $ git log --oneline | head -1
> 31075a8 runtests: disable memory tracking with threaded resolver
> $ ./src/curl -V
> curl 7.34.1-DEV (x86_64-apple-darwin13.0.0) libcurl/7.34.1-DEV OpenSSL/1.0.1e zlib/1.2.8 libidn/1.26
> Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp
> Features: AsynchDNS IDN Largefile NTLM NTLM_WB SSL libz TLS-SRP
> $ ./src/curl --connect-timeout 5 www.yahoo.com
> curl: (28) Connection timed out after 5520 milliseconds
>
>> Can you show us what output -v tells you on the failed run?
>>
>> What happens without "--connect-timeout 5” ?
>
> Same error, see above.
>
>
> Regards,
> Fabian

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-01-08