Jesús Burgos Maciá
2db1ef10f7
Fix: Invalid JSON on gc-stats ( #1801 )
...
* Fix: Invalid JSON on gc-stats
Credits of this patch should be for @jdsundberg, who reported the issue
but never sent a patch. Link to his bug report is below.
Closes #1687 .
* Update tests so JSON response is correctly parsed
JSON without a whitespace between key and values wasn't being correctly
parsed (for example: `key: 'value'` was processed ok, but `key:'value'`
wasn't).
2019-05-21 07:43:18 -05:00
Noah Gibbs
0d7a8bb5f3
Add /gc URL to status server to do a major GC. Add a /gc-status URL to get GC.stats as JSON. ( #1384 )
2017-08-03 15:46:49 -06:00
Evan Phoenix
f788af0c8f
Continue API cleanup, preparing for 3.0
2016-02-06 19:00:29 -08:00
Rubén Caro
48b50a312f
Add reload_worker_directory
2014-02-25 14:52:20 +01:00
Michael J. Cohen
678a6c73c9
Fix typo in phased-restart response
...
Sponsored-by: CentroNet Marketing
2013-08-06 15:47:40 -04:00
Evan Phoenix
c48b804d8f
Refactor modes, fix control server to always work
2013-07-05 16:08:13 -07:00
Paco Viromontes
a2a53316c3
allow for alternate locations for status app
2012-10-03 18:16:31 -07:00
Evan Phoenix
27b2f8e60a
Formatting fix
2012-07-19 16:38:16 -07:00
Konstantin Haase
3dc2a76211
use #bytesize instead of #length for Content-Length header
2012-05-13 02:27:14 +03:00
jc00ke
29a71026f1
Use correct Content-Type
2012-04-29 12:24:00 -07:00
jc00ke
ede98dadfd
Return valid Rack responses from status server
...
Use Rack::Lint to check the response is valid. Existing code really just
needed Content-Length & Content-Type headers.
2012-04-29 12:18:21 -07:00
Evan Phoenix
892084657f
+ Add ability to inherit server sockets on restart
2012-04-04 11:38:22 -04:00
Evan Phoenix
a91d64a560
Add auth token support to App::Status
2011-12-06 16:22:02 -08:00
Evan Phoenix
d8026e87f4
Add ability to restart by reexecing and pumactl to use it
...
This allows all existing requests to finish, but does not keep the same
socket alive across the exec, so this is not a graceful as it could be.
2011-12-05 15:58:23 -08:00
Evan Phoenix
c5aad50eb4
Add App::Status rack app to control a server
...
Puma::App::Status is a rack app that can be used to control the current
server. It allows a server to be queried remotely programmaticly.
2011-12-05 09:01:19 -08:00