1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Do not close the pipe sockets when retrying

This commit is contained in:
Gustav Munkby 2013-10-28 13:56:45 +01:00
parent 28d181bfe8
commit 74ea16df7f

View file

@ -18,7 +18,9 @@ module Puma
@sockets = [@ready]
end
def run
private
def run_internal
sockets = @sockets
while true
@ -95,6 +97,12 @@ module Puma
end
end
end
end
public
def run
run_internal
ensure
@trigger.close
@ready.close
@ -104,7 +112,7 @@ module Puma
@thread = Thread.new {
while true
begin
run
run_internal
break
rescue StandardError => e
STDERR.puts "Error in reactor loop escaped: #{e.message} (#{e.class})"