mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
On interrupt, wait for requests to finish
This commit is contained in:
parent
ea72a93e1c
commit
054da8f705
1 changed files with 3 additions and 1 deletions
|
@ -177,7 +177,9 @@ module Puma
|
|||
begin
|
||||
server.run.join
|
||||
rescue Interrupt
|
||||
log " - Shutting down..."
|
||||
log " - Gracefully stopping, waiting for requests to finish"
|
||||
server.stop(true)
|
||||
log " - Goodbye!"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue