• pc66fr

    (@pc66fr)


    Hello , I have the pro plugin

    I need to import from a csv generated by a server

    I’m getting timeout error ,the server need atleast 60 secondes to generate and send the CSV

    Can we modify the 30s timeout to 80s for exemple ? thanks !

Viewing 1 replies (of 1 total)
  • Plugin Author jcollings

    (@jcollings)

    Hi,

    At the moment you can only override the timeout when fetching remote files by using the http_request_args filter to modify the timeout value.

    An example of changing the timeout value to 90 seconds can be achieved by adding the following snippet to your theme:

    // Extend timeout on wp_remote_get to 90 seconds
    add_filter('http_request_args', function($args){
        // increase timeout to 90 seconds
        $args['timeout'] = 90;
        return $args;
    });

    https://pastebin.com/qqdBXYBw

Viewing 1 replies (of 1 total)
  • The topic ‘cURL error 28: OP Timed out after 30s’ is closed to new replies.