mirror of
https://github.com/esphome/esphome.git
synced 2026-09-22 04:28:43 +00:00
[socket] Increase MIN_UDP_SOCKETS from 6 to 8
Now that DHCP+DNS are tracked as wifi.lwip_internal UDP consumers, the old minimum of 6 only left 4 free PCBs. Bumping to 8 restores the same effective headroom as before (6 free after DHCP+DNS). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
f55387b323
commit
5d44a556a4
@@ -308,7 +308,7 @@ def _configure_lwip(config: dict) -> None:
|
||||
**** RTL/LN LT overlay overrides to flat 7.
|
||||
***** Not defined in RTL SDK — lwIP opt.h defaults shown.
|
||||
"dynamic" = auto-calculated from component socket registrations via
|
||||
socket.get_socket_counts() with minimums of 10 TCP / 6 UDP.
|
||||
socket.get_socket_counts() with minimums of 10 TCP / 8 UDP.
|
||||
"""
|
||||
from esphome.components.socket import (
|
||||
MIN_TCP_SOCKETS,
|
||||
|
||||
@@ -23,7 +23,7 @@ KEY_SOCKET_CONSUMERS_UDP = "socket_consumers_udp"
|
||||
# Recommended minimum socket counts to ensure headroom
|
||||
# Platforms should apply these (or their own) on top of get_socket_counts()
|
||||
MIN_TCP_SOCKETS = 10
|
||||
MIN_UDP_SOCKETS = 6
|
||||
MIN_UDP_SOCKETS = 8
|
||||
|
||||
# Wake loop threadsafe support tracking
|
||||
KEY_WAKE_LOOP_THREADSAFE_REQUIRED = "wake_loop_threadsafe_required"
|
||||
|
||||
Reference in New Issue
Block a user