From 63b1d1c005616ccd9aadf3a8451988a23990d479 Mon Sep 17 00:00:00 2001 From: Dan Ungureanu Date: Thu, 6 Aug 2015 14:58:01 +0300 Subject: [PATCH] Fixes cURL timeout. cURL tries to reverse DNS the server and because it cannot it waits for the timeout. It depends on machine configuration. Signed-off-by: Dan Ungureanu --- libraries/Config.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/Config.class.php b/libraries/Config.class.php index b214568ff2..bd701daa2c 100644 --- a/libraries/Config.class.php +++ b/libraries/Config.class.php @@ -778,6 +778,7 @@ class PMA_Config curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($handle, CURLOPT_TIMEOUT, 5); + curl_setopt($handle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); if (! defined('TESTSUITE')) { session_write_close(); }