1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/lib/puma/cluster
Will Jordan c1a98f8f22
Fix hang on shutdown in test_refork [changelog skip] (#2442)
* Prevent server from starting if worker receives TERM signal
If a worker receives a `TERM` signal before the server has started,
prevent it from starting at all by clearing `restart_server`.

* Send TERM to fork_worker child processes in Cluster#wait_workers
When `fork_worker` is used, the call to `Process.wait` in `wait_workers`
returns `ECHILD` for forked workers.
Add a call to `w.term` in the rescue clause to match the behavior when
`fork_worker` is not used, ensuring workers shut down properly.

* Add test_command_ignored_before_run
Unit test clarifying behavior of commands sent before Server#run is called.
2020-10-22 13:54:15 -06:00
..
worker.rb Fix hang on shutdown in test_refork [changelog skip] (#2442) 2020-10-22 13:54:15 -06:00
worker_handle.rb Refactor: extract worker process into separate class [changelog skip] (#2374) 2020-09-29 07:21:52 -06:00