-
Bug
-
Resolution: Fixed
-
Minor
-
3.3.3, 3.4, 3.5
-
MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
-
MOODLE_33_STABLE, MOODLE_34_STABLE
-
MDL-60838-master -
When uploading files to the Solr server (as opposed to normal text documents), a curl object is used to make a POST request, instead of the Solr library object.
There is no timeout setting to the curl object which means that if the remote server has a problem, it may never time out, potentially causing the scheduled task never to complete, and causing various problems. For example, the task lock in the database may be held, meaning that indexing does not continue even when a later cron task runs. (This has happened on our test system.)
Since the Solr config already has a timeout setting, this should be applied to the curl object as well as the other requests.