View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0008076||CentOS-7||curl||public||2015-01-14 12:36||2015-07-24 16:11|
|Target Version||Fixed in Version|
|Summary||0008076: libcurl 7.29 slow on dns resolution|
|Description||libcurl adds ~ 150ms latency on each request compared to the version delivered in CentOS 6, or the one from Fedora 21 (7.37)|
I recognized the problem while moving a php application to a CentOS 7 server, where the applications was much slower.
My current solution is that i have compiled the curl srpm from Fedora 21.
Now the PHP application is running as usual.
|Steps To Reproduce||# curl-format.txt|
# start of file
# end of file
slow request (with name resolution):
curl -4 -w '@curl-format.txt' www.google.de
-> time_total: 0,052
fast request (without name resolution):
curl -4 -w '@curl-format.txt' -H'Host: www.google.de' 22.214.171.124
-> time_total: 0,204
|Tags||No tags attached.|
|I agreed with this, any request has taken for 0.150s delay.|
It's due to a bug in libcurl in 7.29.0, but fixed later upstream, for more details: http://curl.haxx.se/mail/archive-2014-10/0037.html.
Upgrading to 7.43.0 fixes the issue.
This one is biting us as well.. and a request that normally takes 50msecs on rhel6, takes 350msecs on centos 7 :( (and we do it several times a minute..)
According to RH equivalent bug - it's fixed in newer version of 7.29 in fc19: https://bugzilla.redhat.com/show_bug.cgi?id=1130239
Also.. this bug seems to have been introduced by a bad backport by Red Hat.. according to http://curl.haxx.se/mail/archive-2014-10/0044.html