8

I use WordPress and I recently moved my site from the cpanel host to a Linux server with directadmin panel. Right after the transfer realized that customers have the following error when downloading via EDD plugin.

cURL error 28: Resolving timed out after 5001 milliseconds

I also got this error of w3_total_cache plugin.

Server informatin: Centos 6.8 (Final) cURL 7.54.0 (Final) directadmin

Danesh-Ju Com
  • 81
  • 1
  • 1
  • 3

5 Answers5

4

cURL error 28: Resolving timed out after 5001 milliseconds means DNS resolving failed.

so just change the DNS server list in /etc/resolv.conf.

or maybe we can bind the hostname and ip address in /etc/hosts.

this image shows the demo.

Samvel Aleqsanyan
  • 2,812
  • 4
  • 20
  • 28
PLA
  • 777
  • 8
  • 8
0

As reported here: https://wordpress.org/support/topic/dropbox-upload-fails-with-curl-timeout-error/ You can apply this temporary fix to extend the HTTP request timeout:

add_filter( 'http_request_timeout', function( $timeout ) { return 60; });

Wordpress default is 5 seconds.

-2

To resolve this you have to set the curl connection time out and time out value at the time of curl initialization.
Just changes this two property value.

CURLOPT_CONNECTTIMEOUT => 30,
CURLOPT_TIMEOUT => 60,

For more details check This.

Bibhudatta Sahoo
  • 4,808
  • 2
  • 27
  • 51
-3

update these two lines here: /usr/share/icingaweb2/modules/jira/library/Jira/RestApi.php

    $opts = array(
        CURLOPT_URL            => $this->url($url),
        CURLOPT_HTTPHEADER     => $headers,
        CURLOPT_USERPWD        => $auth,
        CURLOPT_CUSTOMREQUEST  => \strtoupper($method),
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_CONNECTTIMEOUT => 30,
        CURLOPT_TIMEOUT => 30,
alexherm
  • 1,362
  • 2
  • 18
  • 31
-4

You can set set_time_limit(120); in the wp-config.php after the MySQL settings section.