mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Merge pull request #510 from momer/rescue-block-handle-servers-fix
Somewhere along the way, the variable which held the new Client object i...
This commit is contained in:
commit
e31042203b
1 changed files with 6 additions and 6 deletions
|
@ -185,8 +185,8 @@ module Puma
|
|||
else
|
||||
begin
|
||||
if io = sock.accept_nonblock
|
||||
c = Client.new io, nil
|
||||
pool << c
|
||||
client = Client.new io, nil
|
||||
pool << client
|
||||
end
|
||||
rescue SystemCallError
|
||||
end
|
||||
|
@ -292,8 +292,8 @@ module Puma
|
|||
else
|
||||
begin
|
||||
if io = sock.accept_nonblock
|
||||
c = Client.new io, @binder.env(sock)
|
||||
pool << c
|
||||
client = Client.new io, @binder.env(sock)
|
||||
pool << client
|
||||
end
|
||||
rescue SystemCallError
|
||||
end
|
||||
|
@ -732,8 +732,8 @@ module Puma
|
|||
begin
|
||||
if io = sock.accept_nonblock
|
||||
count += 1
|
||||
c = Client.new io, @binder.env(sock)
|
||||
@thread_pool << c
|
||||
client = Client.new io, @binder.env(sock)
|
||||
@thread_pool << client
|
||||
end
|
||||
rescue SystemCallError
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue