evanphx/puma — pull request #39 by bporterfield (2012-02-04 20:19:42+00:00)
Title: Trimming in thread pool can result in requests hanging

Issue: https://github.com/evanphx/puma/issues/38

We need to know if trimming will result in work in the queue without workers. Tracking working workers and work available to know determine whether a Trim will leave work without a worker until another one is freed.

This may not be the optimal solution, as my threading experience in general is pretty limited.