From 3e1e11f5d627187e0142ab6406830d02320b0893 Mon Sep 17 00:00:00 2001 From: Kevin Porras Date: Thu, 11 Jan 2024 11:08:02 -0600 Subject: [PATCH] Default max retries var was not defined. --- src/Request/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Request/Request.php b/src/Request/Request.php index 40b6f3520..1c225fea1 100755 --- a/src/Request/Request.php +++ b/src/Request/Request.php @@ -176,7 +176,7 @@ private function getClient($base_uri = null): ClientInterface private function createRetryDecider(): callable { $config = $this->getConfig(); - $maxRetries = $config->get('http_max_retries', $defaultMaxRetries); + $maxRetries = $config->get('http_max_retries', 5); // Cap max retries at 10. $maxRetries = $maxRetries > 10 ? 10 : $maxRetries; $retryBackoff = $config->get('http_retry_backoff', 5);