Skip to content

Commit

Permalink
[TEMP] server max logging
Browse files Browse the repository at this point in the history
  • Loading branch information
MSP-Greg committed Oct 12, 2024
1 parent e520648 commit fad7a13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/puma/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fad7a13

Please sign in to comment.