From caf173ab903d993aebdf137f3ca64f1ca73b74dc Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 7 Mar 2019 13:32:30 +0100 Subject: [locationinfo] Introduce timeouts for curl operations --- .../locationinfo/inc/coursebackend/coursebackend_exchange.inc.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules-available/locationinfo/inc/coursebackend/coursebackend_exchange.inc.php') diff --git a/modules-available/locationinfo/inc/coursebackend/coursebackend_exchange.inc.php b/modules-available/locationinfo/inc/coursebackend/coursebackend_exchange.inc.php index c61c3f2f..ffbca17f 100755 --- a/modules-available/locationinfo/inc/coursebackend/coursebackend_exchange.inc.php +++ b/modules-available/locationinfo/inc/coursebackend/coursebackend_exchange.inc.php @@ -234,6 +234,8 @@ class CourseBackend_Exchange extends CourseBackend $client->setCurlOptions(array( CURLOPT_SSL_VERIFYPEER => $this->verifyHostname ? 2 : 0, CURLOPT_SSL_VERIFYHOST => $this->verifyCert ? 1 : 0, + CURLOPT_TIMEOUT => 15, + CURLOPT_CONNECTTIMEOUT => 3, )); return $client; -- cgit v1.2.3-55-g7522