From 5d9b8e63a32a4c1a62d246c0a7a45f95c843431a 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/puma/server.rb b/lib/puma/server.rb index 41fb4661..553d32ad 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 @@ -467,6 +469,7 @@ def process_client(client) case handle_request(client, requests + 1) when false # ok, we're done + @closed_conections += 1 when :async close_socket = false when true