From fad7a13d2a2c9b495e066844df09dda95ab938d2 Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Sat, 12 Oct 2024 10:21:11 -0500 Subject: [PATCH] [TEMP] server max logging --- lib/puma/server.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/puma/server.rb b/lib/puma/server.rb index a280a46e..e812089c 100644 --- a/lib/puma/server.rb +++ b/lib/puma/server.rb @@ -69,6 +69,7 @@ class Server # calling code to not require events.rb. # def initialize(app, events = nil, options = {}) + @closed_conections = 0 @app = app @events = events || Events.new @@ -393,6 +394,7 @@ def handle_servers end graceful_shutdown if @status == :stop || @status == :restart +STDOUT.syswrite "\n********* @closed_conections #{@closed_conections} reactor #{@reactor&.selector_size_max} tp #{pool&.backlog_max}\n" rescue Exception => e @log_writer.unknown_error e, nil, "Exception handling servers" ensure