From af64b199eda3dc0e3025c751a6f910ab074730ca Mon Sep 17 00:00:00 2001 From: Olivier Bellone Date: Wed, 7 Jul 2021 11:40:03 -0700 Subject: [PATCH] Fix deadlock issue in thread pool (#2656) --- lib/puma/thread_pool.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/puma/thread_pool.rb b/lib/puma/thread_pool.rb index 8e25162c51..abada439fd 100644 --- a/lib/puma/thread_pool.rb +++ b/lib/puma/thread_pool.rb @@ -119,6 +119,7 @@ def spawn_thread @trim_requested -= 1 @spawned -= 1 @workers.delete th + not_full.signal Thread.exit end