MDL-60838 core_search: File upload does not honour timeout

This commit is contained in:
sam marshall
2017-11-24 11:02:32 +00:00
parent 20cb5f4086
commit 70a804d98e
+3
View File
@@ -1227,6 +1227,9 @@ class engine extends \core_search\engine {
}
}
// Set timeout as for Solr client.
$options['CURLOPT_TIMEOUT'] = !empty($this->config->server_timeout) ? $this->config->server_timeout : '30';
$this->curl->setopt($options);
if (!empty($this->config->server_username) && !empty($this->config->server_password)) {