Skip to content

Commit a269f9e

Browse files
committed
Tweaks
1 parent 4b74698 commit a269f9e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

http_client.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -706,10 +706,6 @@ making a request. Use the ``max_redirects`` setting to configure this behavior
706706
Retry Failed Requests
707707
~~~~~~~~~~~~~~~~~~~~~
708708

709-
.. versionadded:: 6.4
710-
711-
The ``max_retries`` feature was added in Symfony 6.4.
712-
713709
Sometimes, requests fail because of network issues or temporary server errors.
714710
Symfony's HttpClient allows to retry failed requests automatically using the
715711
:ref:`retry_failed option <reference-http-client-retry-failed>`.
@@ -718,8 +714,12 @@ By default, failed requests are retried up to 3 times, with an exponential delay
718714
between retries (first retry = 1 second; third retry: 4 seconds) and only for
719715
the following HTTP status codes: ``423``, ``425``, ``429``, ``502`` and ``503``
720716
when using any HTTP method and ``500``, ``504``, ``507`` and ``510`` when using
721-
an HTTP `idempotent method`_. Use the ``max_retries`` setting to configure the amount
722-
of times a request is retried.
717+
an HTTP `idempotent method`_. Use the ``max_retries`` setting to configure the
718+
amount of times a request is retried.
719+
720+
.. versionadded:: 6.4
721+
722+
The ``max_retries`` options was introduced in Symfony 6.4.
723723

724724
Check out the full list of configurable :ref:`retry_failed options <reference-http-client-retry-failed>`
725725
to learn how to tweak each of them to fit your application needs.

0 commit comments

Comments
 (0)