mirror of
https://github.com/esphome/esphome.git
synced 2025-11-19 16:25:50 +00:00
cleanup
This commit is contained in:
@@ -74,9 +74,9 @@ def _final_validate(config: ConfigType) -> ConfigType:
|
|||||||
|
|
||||||
# Register socket needs for DNS server and additional HTTP connections
|
# Register socket needs for DNS server and additional HTTP connections
|
||||||
# - 1 UDP socket for DNS server
|
# - 1 UDP socket for DNS server
|
||||||
# - 3 additional TCP sockets for captive portal detection probes + configuration requests
|
# - 3 additional TCP sockets for captive portal HTTP connections
|
||||||
# (OS captive portal detection makes multiple probe requests that stay in TIME_WAIT,
|
# OS captive portal detection makes multiple simultaneous probe requests.
|
||||||
# need headroom for actual user configuration requests)
|
# LRU purging will reclaim idle sockets, but we need enough for the initial burst.
|
||||||
from esphome.components import socket
|
from esphome.components import socket
|
||||||
|
|
||||||
socket.consume_sockets(4, "captive_portal")(config)
|
socket.consume_sockets(4, "captive_portal")(config)
|
||||||
|
|||||||
Reference in New Issue
Block a user