-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change 'Goodbye!' message to be output after listeners are closed #2529
Conversation
This also gets called on hot restarts on windows and Jruby though. Is the goal here to log this message on halts? If so, I think it should just be extracted into its own method and then called separately in both places. |
Using the PR, 'Goodbye!' is not logged when restarting on Windows. Haven't checked JRuby. While working with CI POpen Puma servers, I wanted to check proper closing of bind sockets on shutdown, and I used the output of 'Goodbye!' as a marker for 'shutdown complete'. As mentioned above, 'Goodbye!' may be written before the bind sockets are closed.
Not really, but I mentioned it because I thought the behavior should match. I think we could just replace |
I think I'm nervous about the idea of moving a shutdown log into a method that doesn't actually shut anything down |
Maybe move it to |
The only real difference between Firing events though is a bit trickier, since they kind of get in the way of the mission of |
c304d0b
to
433a804
Compare
I updated this, I believe it works correctly (on both halt & stop)... |
I think it doesn't hurt mention this change in the changelog, even if it's considered minor :) |
@dentarg - feature, bug fix, or refactor? I'm not sure which... |
Bugfix sounds the best match to me |
433a804
to
b0d35ea
Compare
Done. Warning, merge conflict ahead... |
…ma#2529) Co-authored-by: Nate Berkopec <nate.berkopec@gmail.com>
Description
When a server is stopped, the last line of the log is
Goodbye!
. Currently, this line is output before the listeners are closed. Note that this is not output when a server is halted.While working with updated tests, and checking for closed listeners, I noticed this.
Hence, change
Goodbye!
to appear after the listeners are closed. WhetherGoodbye!
should be output when a server is halted, not sure...Your checklist for this pull request
[changelog skip]
or[ci skip]
to the pull request title.[ci skip]
to the title of the PR.#issue
" to the PR description or my commit messages.