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

Application restart is slow #96

Closed
cbxp opened this issue Dec 12, 2024 · 2 comments
Closed

Application restart is slow #96

cbxp opened this issue Dec 12, 2024 · 2 comments
Milestone

Comments

@cbxp
Copy link
Collaborator

cbxp commented Dec 12, 2024

During development, we often need to restart the application.
But every restart takes 3+ seconds.

It's caused by default value gracefulStopDelaySec=3 in klite.Server.start().

I assume this could be timeout (maximum time, up to 3 seconds).
But the application always waits for 3 seconds, even if there is not running requests/jobs.

@angryziber
Copy link
Member

This seems to be a bug in JDK HttpServer (ServerImpl), which according to the javadoc could terminate earlier, but in reality always waits as long as the passed delay...

angryziber added a commit that referenced this issue Dec 13, 2024
…nd for a bug in JDK HttpServer, which waits in any case)
@angryziber
Copy link
Member

Improved idle restart in latest main

@angryziber angryziber added this to the 1.6.10 milestone Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants