if a requests response is 409 retry upto 10 times

This commit is contained in:
Niraj Acharya
2023-07-18 09:26:36 +05:45
parent ca929abd3a
commit abb111c3a1
3 changed files with 44 additions and 14 deletions
+5 -2
View File
@@ -601,6 +601,7 @@ class WebDavHelper {
* @param Client|null $client
* @param array|null $urlParameter to concatenate with path
* @param string|null $doDavRequestAsUser run the DAV as this user, if null it is the same as $user
* @param bool $isGivenStep is set to true if makeDavRequest is called from a "given" step
*
* @return ResponseInterface
* @throws GuzzleException
@@ -623,7 +624,8 @@ class WebDavHelper {
?int $timeout = 0,
?Client $client = null,
?array $urlParameter = [],
?string $doDavRequestAsUser = null
?string $doDavRequestAsUser = null,
?bool $isGivenStep = false
):ResponseInterface {
$baseUrl = self::sanitizeUrl($baseUrl, true);
@@ -702,7 +704,8 @@ class WebDavHelper {
null,
$stream,
$timeout,
$client
$client,
$isGivenStep
);
}