Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Recently switched to a different server, some php files use curl and seemed to be running fine originally but not so much anymore. Here is curl_getinfo for

array(20) { ["url"]=>  string(22) "" ["content_type"]=>  string(24) "text/html; charset=UTF-8" ["http_code"]=>  int(200) ["header_size"]=>  int(504) ["request_size"]=>  int(1136) ["filetime"]=>  int(-1) ["ssl_verify_result"]=>  int(0) ["redirect_count"]=>  int(1) ["total_time"]=>  float(20.098232) ["namelookup_time"]=>  float(0.006034) ["connect_time"]=>  float(0.020963) ["pretransfer_time"]=>  float(0.020999) ["size_upload"]=>  float(0) ["size_download"]=>  float(5481) ["speed_download"]=>  float(272) ["speed_upload"]=>  float(0) ["download_content_length"]=>  float(5481) ["upload_content_length"]=>  float(0) ["starttransfer_time"]=>  float(0.047948) ["redirect_time"]=>  float(20.035229) }

There is 1 redirect and it is somehow taking 20 seconds, basically 100% of the time I wait.

There are other odd delays as well, logging into ssh is taking 20-30 seconds to authenticate/deny after password and that used to be instant.

Any ideas?

share|improve this question
up vote 2 down vote accepted

The problem was IPv6 - for some reason the DNS was taking 20 seconds to fall back to IPv4. Removing IPv6 support solved the problem.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.