mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-25 11:07:01 -06:00
The loopback control server spawned a thread per connection, read unbounded lines, queued requests without limit and set no socket deadlines. It now caps simultaneous clients (16) and request lines (16 MiB), uses a bounded request queue (64) that answers busy when full, closes sockets idle for 10 minutes or blocked on a write for 30 seconds, and frees a connection slot whenever a client thread ends. Co-authored-by: Cursor <cursoragent@cursor.com>