1
0
Fork 0
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:
Evan Phoenix 2014-04-12 13:03:29 -07:00
commit e31042203b

View file

@ -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