From 6f96804a5dd8a1154f4bd2c74ce6b952469f53cc Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 17 Nov 2025 22:31:22 -0600 Subject: [PATCH] cleanup --- esphome/components/captive_portal/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/captive_portal/__init__.py b/esphome/components/captive_portal/__init__.py index 5f7ae32570..2c788c4b39 100644 --- a/esphome/components/captive_portal/__init__.py +++ b/esphome/components/captive_portal/__init__.py @@ -74,9 +74,9 @@ def _final_validate(config: ConfigType) -> ConfigType: # Register socket needs for DNS server and additional HTTP connections # - 1 UDP socket for DNS server - # - 3 additional TCP sockets for captive portal detection probes + configuration requests - # (OS captive portal detection makes multiple probe requests that stay in TIME_WAIT, - # need headroom for actual user configuration requests) + # - 3 additional TCP sockets for captive portal HTTP connections + # OS captive portal detection makes multiple simultaneous probe requests. + # LRU purging will reclaim idle sockets, but we need enough for the initial burst. from esphome.components import socket socket.consume_sockets(4, "captive_portal")(config)