curl slow download from php

noescom2

Verified User
Joined
Oct 5, 2007
Messages
10
I'm using libcurl to download some content from another webpage. For reasons previously unknown to me all calls were very slow to the point of usual timeout. Now i found curl_getinfo and got some info:

Array
(
=> https://undisclosed-website ...pache and recompiled apache2 and php as well.
 
Check if you have correct nameserver entries in /etc/resolv.conf
Sometimes slow nameservers affect data transfer speed.
 
Check if you have correct nameserver entries in /etc/resolv.conf
Sometimes slow nameservers affect data transfer speed.

[namelookup_time] => 0.00058

I don't think so. But thanks for the suggestion.

I suspect that the server fails to send a feof, or at least takes a very long time to do so. The solve would then be to not wait for feof, and just terminate the connection as soon as i received all my data. I'm not sure how to go about that, but i expect there's a way.
 
Back
Top