Skip to content

Commit 8909cde

Browse files
committed
Reword
1 parent 5c2d66b commit 8909cde

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

reference/configuration/framework.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -975,14 +975,16 @@ to let Symfony select the best version automatically.
975975
jitter
976976
......
977977

978-
**type**: ``float`` **default**: ``0.1``
978+
**type**: ``float`` **default**: ``0.1`` (must be between 0.0 and 1.0)
979979

980980
.. versionadded:: 5.2
981981

982982
The ``jitter`` option was introduced in Symfony 5.2.
983983

984-
The probability (expressed with a float between ``0.0`` and ``1.0``) of
985-
randomness to apply to the delay to wait between retries.
984+
This option adds some randomness to the delay. It's useful to avoid sending
985+
multiple requests to the server at the exact same time. The randomness is
986+
calculated as ``delay * jitter``. For example: if delay is ``1000ms`` and jitter
987+
is ``0.2``, the actual delay will be a number between ``800`` and ``1200`` (1000 +/- 20%).
986988

987989
local_cert
988990
..........

0 commit comments

Comments
 (0)