One more challenge!

I use the All-in-one WP Migration tool for making backups.  Very simple and easy to use and never a problem.  However this time round when I was updating my plugins it was coming up with a strange error message:

Error: cURL error 28: Connection timed out after 10000 milliseconds

So WordPress Techs came up with the following suggestion that solved the problem.  I thought I’d post it here for future reference as it worked.  The error message did come back, but I had no issue with making a backup:

Hi @kirkofthefleet ,
The error detail “http_request_failed” is missleading you. Either for https or https the error will be the same.

The problem here could be simply a performance issue. As the error message says, the loopback request is aborting after 10 seconds without receiving a response.
So, the first thing that I’d try is to extend the timeout limit to something longer than 10 seconds.
If you are comfortable with some basic coding, you can achieve this by placing the following snippet into your theme functions.php file:

function __extend_http_request_timeout( $timeout ) {
    return 60; // seconds
add_filter( 'http_request_timeout', '__extend_http_request_timeout' );

(if it is third party theme, you will want to create a child theme to avoid lossing your changes, or put this into a custom plugin).

If you still get a timeout after 60 seconds, then there is definitely something failing in your API endpoint.