diff options
author | Simon Rettberg | 2019-03-07 13:32:30 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-07 13:32:30 +0100 |
commit | caf173ab903d993aebdf137f3ca64f1ca73b74dc (patch) | |
tree | 70cc2fa2f4b1d25167a4b0b646b57b57ba78fe1a /modules-available/locationinfo/inc/coursebackend/coursebackend_exchange.inc.php | |
parent | [locationinfo] Add error log for backends (diff) | |
download | slx-admin-caf173ab903d993aebdf137f3ca64f1ca73b74dc.tar.gz slx-admin-caf173ab903d993aebdf137f3ca64f1ca73b74dc.tar.xz slx-admin-caf173ab903d993aebdf137f3ca64f1ca73b74dc.zip |
[locationinfo] Introduce timeouts for curl operations
Diffstat (limited to 'modules-available/locationinfo/inc/coursebackend/coursebackend_exchange.inc.php')
-rwxr-xr-x | modules-available/locationinfo/inc/coursebackend/coursebackend_exchange.inc.php | 2 |
1 files changed, 2 insertions, 0 deletions
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; |