From d4e2df8b7023f299febf7c4f56bdf3d57f15f0ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chrz=C4=85szcz?= Date: Fri, 15 Apr 2022 15:42:54 +0200 Subject: [PATCH] Allow 'infinity' for max_stanza_size The default value is 'infinity' so it makes sense to make this value valid. --- doc/configuration/listen.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/configuration/listen.md b/doc/configuration/listen.md index 84d4f54b4c4..dd2028bffd6 100644 --- a/doc/configuration/listen.md +++ b/doc/configuration/listen.md @@ -78,11 +78,11 @@ Hibernation greatly reduces memory consumption of client processes, but *may* re The default, recommended value of 0 means that the client processes will hibernate at every opportunity. ### `listen.*.max_stanza_size` -* **Syntax:** positive integer -* **Default:** not set, unlimited size +* **Syntax:** positive integer or the string `"infinity"` +* **Default:** `"infinity"` * **Example:** `max_stanza_size = 10_000` -Maximum allowed incoming stanza size in bytes. +Maximum allowed incoming stanza size in bytes. !!! Warning This limit is checked **after** the input data parsing, so it does not apply to the input data size itself.