P3-01: workers config parsed but unused by ThreadingHTTPServer #19

Closed
opened 2026-06-16 13:57:02 +00:00 by Artur · 0 comments
Owner

Severity: P3 (Low)
File: decider/server.py lines 95, 210

Problem

workers = _server_config.get("workers", 4)  # parsed but never used
...
server = ThreadingHTTPServer((bind, port), DeciderHandler)  # unbounded thread pool

The workers config is read from the config file, logged, but never applied. ThreadingHTTPServer spawns a new thread per request with no cap.

Fix

Either:

  1. Remove workers from config (document that ThreadingHTTPServer is unbounded)
  2. Or implement a bounded thread pool executor that queues requests
**Severity**: P3 (Low) **File**: `decider/server.py` lines 95, 210 ## Problem ```python workers = _server_config.get("workers", 4) # parsed but never used ... server = ThreadingHTTPServer((bind, port), DeciderHandler) # unbounded thread pool ``` The `workers` config is read from the config file, logged, but never applied. `ThreadingHTTPServer` spawns a new thread per request with no cap. ## Fix Either: 1. Remove `workers` from config (document that ThreadingHTTPServer is unbounded) 2. Or implement a bounded thread pool executor that queues requests
Artur closed this issue 2026-06-16 14:24:07 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
glow-all/decider#19
No description provided.