From 21b9a4ef2e0a940605134f46b80d699753ca22ed Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 26 May 2024 22:07:53 -1000 Subject: [PATCH] Increase MQTT incoming buffer to 8MiB (#118220) --- homeassistant/components/mqtt/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/mqtt/client.py b/homeassistant/components/mqtt/client.py index b219e73975e..60f3fd6f856 100644 --- a/homeassistant/components/mqtt/client.py +++ b/homeassistant/components/mqtt/client.py @@ -92,7 +92,7 @@ if TYPE_CHECKING: _LOGGER = logging.getLogger(__name__) MIN_BUFFER_SIZE = 131072 # Minimum buffer size to use if preferred size fails -PREFERRED_BUFFER_SIZE = 2097152 # Set receive buffer size to 2MB +PREFERRED_BUFFER_SIZE = 8 * 1024 * 1024 # Set receive buffer size to 8MiB DISCOVERY_COOLDOWN = 5 # The initial subscribe cooldown controls how long to wait to group