Commit Graph
2 Commits
Author SHA1 Message Date
Hasan BasbunarandClaude Opus 5.5 84e3a30e6d proxy: a peer on the network has 30 s in all for its request's headers
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>
2026-10-17 02:11:24 +02:00
Hasan BasbunarandClaude Opus 5.5 c2787090d5 proxy: bound the connections a peer on the network can hold open
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>
2026-10-17 02:11:24 +02:00