[socket] Fix docstring and comment accuracy

- Update MIN_TCP_SOCKETS comment: api(3) + web_server(5) = 8 typical
- Add TCP_LISTEN to consume_sockets docstring

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
J. Nick Koston
2026-02-21 17:18:27 -06:00
parent 7a1448ed19
commit 8aa77c306f

View File

@@ -53,7 +53,7 @@ def consume_sockets(
Args:
value: Number of sockets needed by the component
consumer: Name of the component consuming the sockets
socket_type: Type of socket (SocketType.TCP or SocketType.UDP)
socket_type: Type of socket (SocketType.TCP, SocketType.UDP, or SocketType.TCP_LISTEN)
Returns:
A validator function that records the socket usage