Versions in question:
- Centos 7
- Curl 7.63.0 (x86_64-redhat-linux-gnu) libcurl/7.63.0 NSS/3.36 zlib/1.2.7 libpsl/0.7.0 (+libicu/50.1.2) libssh2/1.8.0 nghttp2/1.31.1
I've got some strange behaviour that I just cannot get to the bottom of. Requests using curl to https resources are significantly slower than those made by wget:
Curl: ``` [root@bb3af4933f48 app]# time curl --silent -o /dev/null https://www.google.com
real 0m0.253s user 0m0.060s sys 0m0.100s ```
Vs wget: ``` [root@bb3af4933f48 app]# time wget -o /dev/null https://www.google.com
real 0m0.098s user 0m0.000s sys 0m0.000s ```
After much googling I tried:
- Upgrading curl from
- Disabling IPV6 and enabling
But still, not getting anywhere at all.
Digging into the issue further shows that the slow down is nothing to do with DNS resolution, that can be ruled out, and is only applicable to HTTPS connections.
I've tried ensuring the same http protocol, and tls version for both requests but see the same behaviour.
We do not see this behaviour on macosx, or debian based machines.