mirror of
https://github.com/esphome/esphome.git
synced 2026-10-06 10:56:43 +00:00
[libretiny] Tune oversized lwIP defaults for ESPHome (#14186)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
Copilot
parent
b539a5aa51
commit
ded457c2c1
@@ -144,11 +144,11 @@ def _consume_web_server_sockets(config: ConfigType) -> ConfigType:
|
||||
"""Register socket needs for web_server component."""
|
||||
from esphome.components import socket
|
||||
|
||||
# Web server needs 1 listening socket + typically 5 concurrent client connections
|
||||
# Web server needs typically 5 concurrent client connections
|
||||
# (browser opens connections for page resources, SSE event stream, and POST
|
||||
# requests for entity control which may linger before closing)
|
||||
sockets_needed = 6
|
||||
socket.consume_sockets(sockets_needed, "web_server")(config)
|
||||
# The listening socket is registered by web_server_base (shared with captive_portal)
|
||||
socket.consume_sockets(5, "web_server")(config)
|
||||
return config
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user