Skip to content

Keep HTTP responsive with idle chat clients - #9

Merged
lavochkaa merged 2 commits into
mainfrom
fix/isolate-http-workers
Oct 27, 2026
Merged

lavochkaa merged 2 commits into
mainfrom
fix/isolate-http-workers

Conversation

@lavochkaa

@lavochkaa lavochkaa commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Why

Eight idle TCP chat clients occupy all workers in the shared pool, leaving HTTP requests queued. A bounded local ThreadPool reproduction confirmed that an additional task could not start while all eight workers waited.

Change

  • Give the HTTP listener and TCP chat listener separate eight-worker pools.
  • Add a Linux smoke test that holds eight chat clients at the login prompt while requesting / over HTTP.
  • Run the C++ tests, server build, and smoke test in Ubuntu 24.04 CI.

Checks

  • Passed: sh tests/run.sh on macOS, C++17 with -Wall -Wextra -Werror.
  • Passed: Python smoke test syntax parse, workflow YAML parse, and git diff origin/main...HEAD --check.
  • Passed: Ubuntu 24.04 CI linux on push and PR: C++ regression tests, make -C src, and the eight-idle-client HTTP smoke test (Actions run 40459428303).
  • Not run locally: Linux build and end-to-end smoke test; no Docker daemon or Linux VM was available.

Remaining risk

The change increases the idle worker count from 8 to 16. TCP still supports at most eight concurrently blocking client handlers; HTTP requests can still queue behind other HTTP clients. Please review the Linux CI result and run a live multi-client check before merging.

@lavochkaa lavochkaa added the bug Something isn't working label Oct 27, 2026
@lavochkaa
lavochkaa marked this pull request as ready for review October 27, 2026 20:29
@lavochkaa
lavochkaa merged commit b4e66a2 into main Oct 27, 2026
2 checks passed
@lavochkaa
lavochkaa deleted the fix/isolate-http-workers branch October 27, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant