From 9d139d121b1886b0c0fa297de13b7b099efc2228 Mon Sep 17 00:00:00 2001 From: Ere Maijala Date: Wed, 9 Aug 2023 20:59:32 +0300 Subject: [PATCH] Increase organisation info retrieval timeout. Also makes it configurable with a hidden setting. --- module/Finna/src/Finna/OrganisationInfo/OrganisationInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Finna/src/Finna/OrganisationInfo/OrganisationInfo.php b/module/Finna/src/Finna/OrganisationInfo/OrganisationInfo.php index 4d723464b6d..77a2c9ee336 100644 --- a/module/Finna/src/Finna/OrganisationInfo/OrganisationInfo.php +++ b/module/Finna/src/Finna/OrganisationInfo/OrganisationInfo.php @@ -757,7 +757,7 @@ protected function fetchJson(string $url): ?array $client = $this->httpService->createClient( $url, \Laminas\Http\Request::METHOD_GET, - 10 + $this->config->General->timeout ?? 20 ); $client->setOptions(['useragent' => 'VuFind']); $result = $client->send();