Files
esphome/esphome
J. Nick Koston 5bc5ec921f [api] Add handshake timeout to prevent connection slot exhaustion
Add a 15-second timeout for completing the API handshake (Noise
transport + HelloRequest). Previously, a client could connect and
stall mid-handshake, holding a connection slot for up to 150 seconds
(the keepalive disconnect timeout). With max_connections defaulting
to 8 on ESP32, this allowed all slots to be blocked with minimal
effort.

Normal clients complete the full handshake in milliseconds, so 15
seconds is generous. The check short-circuits for authenticated
connections (single bitfield compare) so there is no overhead for
established sessions.
2026-02-18 10:20:34 -06:00
..
2026-02-12 23:04:19 +13:00
2025-12-08 14:37:45 -05:00
2025-12-08 14:37:45 -05:00
2025-09-19 12:59:48 +00:00
2025-12-18 00:06:52 +00:00