Skip to content

Commit 6896144

Browse files
committed
Tweak
1 parent 9bc6540 commit 6896144

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

http_client.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -693,11 +693,13 @@ Retry Failed Requests
693693

694694
Sometimes, requests fail because of network issues or temporary server errors.
695695
Symfony's HttpClient allows to retry failed requests automatically using the
696-
:ref:`retry_failed option <reference-http-client-retry-failed>`. When enabled,
697-
each failed request with an HTTP status of ``423``, ``425``, ``429``, ``502``,
698-
``503`` or with an `idempotent method`_ and a HTTP status of ``500``, ``504``,
699-
``507`` or ``510`` is retried up to 3 times, with an exponential delay between
700-
retries (first retry = 1 second; third retry: 4 seconds).
696+
:ref:`retry_failed option <reference-http-client-retry-failed>`.
697+
698+
By default, failed requests are retried up to 3 times, with an exponential delay
699+
between retries (first retry = 1 second; third retry: 4 seconds) and only for
700+
the following HTTP status codes: ``423``, ``425``, ``429``, ``502`` and ``503``
701+
when using any HTTP method and ``500``, ``504``, ``507`` and ``510`` when using
702+
an HTTP `idempotent method`_.
701703

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

0 commit comments

Comments
 (0)