From d7c96d284810bad62b7402b7d414ed4cccb563d1 Mon Sep 17 00:00:00 2001 From: SupunKavinda Date: Fri, 20 Feb 2026 12:55:18 +0100 Subject: [PATCH] increase comms timeout --- bundle/src/Comms/Comms.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bundle/src/Comms/Comms.php b/bundle/src/Comms/Comms.php index 0f82a52..697ed80 100644 --- a/bundle/src/Comms/Comms.php +++ b/bundle/src/Comms/Comms.php @@ -27,8 +27,7 @@ public function __construct( private InternalConfig $internalConfig, private InstanceUrlResolver $instanceUrlResolver, private MessageBusInterface $bus, - ) { - } + ) {} public function signature(string $content): string { @@ -72,7 +71,7 @@ public function send( [ 'headers' => $headers, 'body' => $jsonPayload, - 'timeout' => 5, + 'timeout' => 15, ] ); @@ -93,7 +92,7 @@ public function send( } catch (HttpExceptionInterface $e) { throw new CommsApiFailedException( 'comms event to ' . $url . ' failed. Status code: ' . $response->getStatusCode() . - ' - ' . substr($response->getContent(false), 0, 250) + ' - ' . substr($response->getContent(false), 0, 250) ); } // @codeCoverageIgnoreEnd @@ -140,5 +139,4 @@ protected function validateAndGetTo(AbstractEvent $event, ?Component $to): Compo return $to; } - }