Skip to content

Commit

Permalink
Fix incorrect thread name
Browse files Browse the repository at this point in the history
  • Loading branch information
bongole committed Jul 21, 2017
1 parent 9141613 commit 6402843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puma/thread_pool.rb
Expand Up @@ -71,9 +71,9 @@ def backlog
def spawn_thread
@spawned += 1

th = Thread.new do
th = Thread.new(@spawned) do |spawned|
# Thread name is new in Ruby 2.3
Thread.current.name = 'puma %03i' % @spawned if Thread.current.respond_to?(:name=)
Thread.current.name = 'puma %03i' % spawned if Thread.current.respond_to?(:name=)
todo = @todo
block = @block
mutex = @mutex
Expand Down

0 comments on commit 6402843

Please sign in to comment.