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 0feedad commit 96b0b32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 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 @@ -396,6 +397,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 Expand Up @@ -468,6 +470,7 @@ def process_client(client)
@requests_count += 1
case handle_request(client, requests + 1)
when false
@closed_conections += 1
when :async
close_socket = false
when true
Expand Down

0 comments on commit 96b0b32

Please sign in to comment.