From 958ca86b719f3e3948d6bfb17fee745e284d676c Mon Sep 17 00:00:00 2001 From: Holger Veltrup Date: Tue, 9 Apr 2024 15:46:34 +0200 Subject: [PATCH] feat: timeout for solr requests increased to 30 seconds. --- src/Service/ServerVarSolrClientFactory.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Service/ServerVarSolrClientFactory.php b/src/Service/ServerVarSolrClientFactory.php index a63bb39..44ec30b 100644 --- a/src/Service/ServerVarSolrClientFactory.php +++ b/src/Service/ServerVarSolrClientFactory.php @@ -14,11 +14,14 @@ class ServerVarSolrClientFactory implements SolrClientFactory { private const IES_WEBNODE_SOLR_PORT = '8382'; + private int $timeoutInSeconds = 30; + + public function create(string $core): Client { $adapter = new Curl(); + $adapter->setTimeout($this->timeoutInSeconds); /* - $adapter->setTimeout($this->timeout); $adapter->setProxy($this->proxy); */ $eventDispatcher = new EventDispatcher();