Skip to content
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

Shut down a jetty server gracefully #2222

Merged
merged 2 commits into from Oct 31, 2018

Conversation

rossabaker
Copy link
Member

Adds a shutdownTimeout to the server builder.

  • When the resource is closed, we call jetty.stop().
  • Add a lifecycle listener to await the stop.
    • If the server stops within the shutdownTimeout, complete the release.
    • If not, jetty force stops and we fail the release with a TimeoutException

@rossabaker rossabaker added the enhancement Feature requests and improvements label Oct 30, 2018
@ChristopherDavenport
Copy link
Member

Procedure syntax issues on 2.11

Copy link
Member

@ChristopherDavenport ChristopherDavenport left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 on green

@rossabaker rossabaker merged commit f9156f0 into http4s:master Oct 31, 2018
@rossabaker rossabaker deleted the graceful-jetty-server-shutdown branch October 31, 2018 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests and improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants