class Puma::Server
def with_force_shutdown(client, &block)
Triggers a client timeout if the thread-pool shuts down
def with_force_shutdown(client, &block) @thread_pool.with_force_shutdown(&block) rescue ThreadPool::ForceShutdown client.timeout! end