From bf57a3ef83fcd8dade0caa6f5f2d891dd2f0292d Mon Sep 17 00:00:00 2001 From: Daniel Burger <48986191+danielburger1337@users.noreply.github.com> Date: Sat, 6 May 2023 01:46:31 +0200 Subject: [PATCH] Add 'max_retries' setting docs on the RetryableHttpClient --- http_client.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/http_client.rst b/http_client.rst index 32ddad66bec..24a489cafe7 100644 --- a/http_client.rst +++ b/http_client.rst @@ -706,6 +706,10 @@ making a request. Use the ``max_redirects`` setting to configure this behavior Retry Failed Requests ~~~~~~~~~~~~~~~~~~~~~ +.. versionadded:: 6.3 + + The ``max_retries`` feature was added in Symfony 6.3. + Sometimes, requests fail because of network issues or temporary server errors. Symfony's HttpClient allows to retry failed requests automatically using the :ref:`retry_failed option `. @@ -714,7 +718,8 @@ By default, failed requests are retried up to 3 times, with an exponential delay between retries (first retry = 1 second; third retry: 4 seconds) and only for the following HTTP status codes: ``423``, ``425``, ``429``, ``502`` and ``503`` when using any HTTP method and ``500``, ``504``, ``507`` and ``510`` when using -an HTTP `idempotent method`_. +an HTTP `idempotent method`_. Use the ``max_retries`` setting to configure the amount +of times a request is retried. Check out the full list of configurable :ref:`retry_failed options ` to learn how to tweak each of them to fit your application needs. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy