No key is asked before a request's line and headers are in, and
CLIENT_IO_S (900 s) bounded each read, not the whole: four addresses at
their ceiling of silent or trickling connections shut the port to every
other peer on the network, with no key. A connection from the network now
has CLIENT_HEADER_S (30 s, settable) in all until its headers are in, a
byte at a time or not, then CLIENT_IO_S again. Loopback is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every connection held a thread and a descriptor for up to CLIENT_IO_S
(900 s) before its request line was read, with nothing counting them, so
any peer reaching the port without a key could exhaust the descriptors
and lock every client out. Connections from other machines now count
against a ceiling per address (PROXY_MAX_CONN_PER_ADDRESS, 64) and one
for the network (PROXY_MAX_REMOTE_CONN, 256), and past either the new
connection is closed before a thread starts, as the cockpit's relay does.
Loopback is not counted, so clients on the box keep the port.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>