Skip to content

Commit

Permalink
feat: timeout for solr requests increased to 30 seconds.
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed Apr 9, 2024
1 parent 73c230c commit 958ca86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Service/ServerVarSolrClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 958ca86

Please sign in to comment.