cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl 7.29.0 on centos7 unexpected timeout

From: David M <da3bobots_at_gmail.com>
Date: Thu, 9 Oct 2014 18:08:18 -0500

Thanks for that info. I recompiled adding these options:

--enable-static --disable-shared --enable-threaded-resolver --disable-ipv6

I now observe the threaded resolver. If I'm missing an option let me know.

/bin/curl by DNS

            time_namelookup: 0.150
               time_connect: 0.152
            time_appconnect: 0.000
           time_pretransfer: 0.152
              time_redirect: 0.000
         time_starttransfer: 0.214
                            ----------
                 time_total: 0.214

/bin/curl by IP address

           time_namelookup: 0.000
               time_connect: 0.002
            time_appconnect: 0.000
           time_pretransfer: 0.002
              time_redirect: 0.000
         time_starttransfer: 0.064
                            ----------
                 time_total: 0.064

####################################################

--enable-static --disable-shared --enable-threaded-resolver --disable-ipv6

/curl/7.29.0/bin/curl by DNS

           time_namelookup: 0.003
               time_connect: 0.004
            time_appconnect: 0.000
           time_pretransfer: 0.005
              time_redirect: 0.000
         time_starttransfer: 0.065
                            ----------
                 time_total: 0.066

/curl/7.29.0/bin/curl by IP address

            time_namelookup: 0.000
               time_connect: 0.002
            time_appconnect: 0.000
           time_pretransfer: 0.002
              time_redirect: 0.000
         time_starttransfer: 0.064
                            ----------
                 time_total: 0.064

strace -vffTttti -s 5000 -o test.txt /curl/7.29.0/bin/curl -v -4 -w
"@curl-format.txt" -o /dev/null -s www.....

Results in these files:
 test.txt.3965
 test.txt.3964

From the parent log

1412895495.824990 [00007fc401f45fe1] clone(child_stack=0x7fc3f8813eb0,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_
THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,
parent_tidptr=0x7fc3f88149d0, tls=0x7fc3f8814700,
child_tidptr=0x7fc3f88149d0) = 3965 <0.000200>
1412895495.825304 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
154751347}) = 0 <0.000040>
1412895495.825447 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
154892738}) = 0 <0.000037>
1412895495.825597 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
155044781}) = 0 <0.000041>
1412895495.825727 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
155171607}) = 0 <0.000025>
1412895495.825803 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
155247324}) = 0 <0.000025>
1412895495.825934 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
155378350}) = 0 <0.000028>
1412895495.826038 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
155482023}) = 0 <0.000024>
1412895495.826112 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
155573613}) = 0 <0.000057>
1412895495.826208 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
155650991}) = 0 <0.000021>
1412895495.826280 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
155724654}) = 0 <0.000024>
1412895495.826342 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
155785411}) = 0 <0.000022>
1412895495.826404 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
155854271}) = 0 <0.000152>
1412895495.826616 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
156058497}) = 0 <0.000024>
1412895495.826707 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
156152972}) = 0 <0.000027>
1412895495.826783 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
156227360}) = 0 <0.000034>
1412895495.826902 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
156347906}) = 0 <0.000021>
1412895495.826977 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
156422285}) = 0 <0.000035>
1412895495.827064 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
156509169}) = 0 <0.000022>
1412895495.827166 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
156610610}) = 0 <0.000019>
1412895495.827243 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
156703400}) = 0 <0.000027>
1412895495.827305 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
156746502}) = 0 <0.000023>
1412895495.827410 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
156884437}) = 0 <0.000030>
1412895495.827500 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
156957767}) = 0 <0.000036>
1412895495.827590 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
157055947}) = 0 <0.000030>
1412895495.827698 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
157142512}) = 0 <0.000021>
1412895495.827800 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
157244481}) = 0 <0.000020>
1412895495.827890 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
157334769}) = 0 <0.000034>
1412895495.828003 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
157448223}) = 0 <0.000021>
1412895495.828095 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
157539531}) = 0 <0.000072>
1412895495.828215 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
157663348}) = 0 <0.000036>
1412895495.828294 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
157738631}) = 0 <0.000038>
1412895495.828408 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
157853626}) = 0 <0.000040>
1412895495.828491 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
157939652}) = 0 <0.000036>
1412895495.828584 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
158044748}) = 0 <0.000032>
1412895495.828709 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
158169247}) = 0 <0.000053>
1412895495.828804 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
158246042}) = 0 <0.000041>
1412895495.828887 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
158333009}) = 0 <0.000034>
1412895495.828959 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
158400337}) = 0 <0.000020>
1412895495.829032 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
158497654}) = 0 <0.000060>
1412895495.829133 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
158576442}) = 0 <0.000039>
1412895495.829213 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
158655292}) = 0 <0.000042>
1412895495.829308 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
158750659}) = 0 <0.000023>
1412895495.829370 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
158822974}) = 0 <0.000020>
1412895495.829451 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
158904478}) = 0 <0.000023>
1412895495.829528 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
158977169}) = 0 <0.000047>
1412895495.829618 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
159092438}) = 0 <0.000071>
1412895495.829747 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
159191283}) = 0 <0.000020>
1412895495.829851 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
159295527}) = 0 <0.000021>
1412895495.829921 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
159368122}) = 0 <0.000036>
1412895495.829993 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
159451930}) = 0 <0.000026>
1412895495.830091 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
159536271}) = 0 <0.000026>
1412895495.830172 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
159616197}) = 0 <0.000035>
1412895495.830281 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
159728419}) = 0 <0.000039>
1412895495.830406 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
159850501}) = 0 <0.000041>
1412895495.830500 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
159944815}) = 0 <0.000034>
1412895495.830581 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
160048904}) = 0 <0.000030>
1412895495.830661 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
160102883}) = 0 <0.000022>
1412895495.830727 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
160172361}) = 0 <0.000046>
1412895495.830825 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
160269849}) = 0 <0.000021>
1412895495.830927 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
160372442}) = 0 <0.000033>
1412895495.831019 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
160464339}) = 0 <0.000020>
1412895495.831116 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
160561174}) = 0 <0.000069>
1412895495.831240 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
160685125}) = 0 <0.000070>
1412895495.831382 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
160827664}) = 0 <0.000027>
1412895495.831497 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
160943046}) = 0 <0.000024>
1412895495.831603 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
161049017}) = 0 <0.000022>
1412895495.831667 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
161113298}) = 0 <0.000034>
1412895495.831740 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
161213800}) = 0 <0.000068>
1412895495.831861 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
161310017}) = 0 <0.000035>
1412895495.831970 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
161467159}) = 0 <0.000094>
1412895495.832184 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
161633375}) = 0 <0.000050>
1412895495.832305 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
161755131}) = 0 <0.000036>
1412895495.832383 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
161834330}) = 0 <0.000046>
1412895495.832473 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
161920674}) = 0 <0.000037>
1412895495.832786 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
162774175}) = 0 <0.000598>
1412895495.833453 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
162898110}) = 0 <0.000023>
1412895495.833528 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
162977159}) = 0 <0.000030>
1412895495.833695 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
163303105}) = 0 <0.000372>
1412895495.834118 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
163563168}) = 0 <0.000029>
1412895495.834206 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
163650724}) = 0 <0.000036>
1412895495.834298 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
163743985}) = 0 <0.000052>
1412895495.834412 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
163857684}) = 0 <0.000014>
1412895495.834462 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
163908321}) = 0 <0.000035>
1412895495.834533 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
163998887}) = 0 <0.000069>
1412895495.834672 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
164116364}) = 0 <0.000045>
1412895495.834820 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
164279840}) = 0 <0.000045>
1412895495.834925 [00007fff5a3fe7d2] clock_gettime(CLOCK_MONOTONIC, {34502,
164382755}) = 0 <0.000040>
1412895495.835032 [00007fc401f378cd] write(2, "*", 1) = 1 <0.000174>
1412895495.835313 [00007fc401f378cd] write(2, " ", 1) = 1 <0.000127>
1412895495.835522 [00007fc401f378cd] write(2, "About to connect() to

and the delay is no longer present.

On Thu, Oct 9, 2014 at 5:34 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Thu, 9 Oct 2014, David M wrote:
>
> Do you have any thoughts why downloading 7.29.0 src (from
>> http://curl.haxx.se/download/) and compiling would give different
>> behavior and no delay?
>>
>
> Because you didn't build it with the same resolver backend that Kamil does
> for the Redhat packages. The threaded one.
>
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-users
> FAQ: http://curl.haxx.se/docs/faq.html
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-10-10