mirror of
https://github.com/esphome/esphome.git
synced 2026-09-19 11:08:38 +00:00
Update esphome/components/socket/__init__.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
parent
bfde66f7f4
commit
7a1448ed19
@@ -23,7 +23,7 @@ KEY_SOCKET_CONSUMERS_TCP_LISTEN = "socket_consumers_tcp_listen"
|
||||
|
||||
# Recommended minimum socket counts to ensure headroom.
|
||||
# Platforms should apply these (or their own) on top of get_socket_counts().
|
||||
# TCP: api(3) = 3 base, +7 headroom for web_server(5)/ota-transfer/other.
|
||||
# TCP: Typical setup: api(3) + web_server(5) = 8 registered, +2 headroom for ota-transfer/other = 10 total.
|
||||
# UDP: dhcp(1) + dns(1) + mdns(2) + wake_loop(1) = 5 base, +3 headroom.
|
||||
MIN_TCP_SOCKETS = 10
|
||||
MIN_UDP_SOCKETS = 8
|
||||
|
||||
Reference in New Issue
Block a user