-
Notifications
You must be signed in to change notification settings - Fork 745
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
HTTP API Prevents Graceful Shutdown w/ Chrome #478
Comments
Note: this issue is only present when using Chrome to access the API. Using This leads me to believe that Chrome is keeping a connection alive and Hyper is acting correctly. I still think we should leave this open until we figure out exactly what's going on with Chrome :) |
I'm gonna take a look at this issue. Ping me if you have any additional information please. |
Turns out Chrome doesn't cause the Hyper HTTP server to hang. The shutdown simply takes a bit longer. Here's how to the It can be seen that Chrome sends keepalives until it's connection timeout elapses. It's a separate confounding factor that Chrome has larger connection timeout settings than other browsers: 300 seconds compared to e.g. Firefox'es 90 (by default). My opinion based on that is that the issue can be closed as there's nothing the built-in HTTP server does wrong. |
Great, thanks @adaszko! I'm confident in saying that this is expected and reasonable behavior and that this issue can be closed :) |
Hey folks, quick question, I have been trying to create a server which simply shuts down after a GET request is received (an OAuth response scenario) and I seem to be running into the same issue. Using hyper with Safari works perfectly but with Chrome I run into the issue above where the exit only happens after the second request is made. Can anyone suggest a workaround for this? |
Description
With the inclusion of the
graceful_shutdown
function in the RESTful HTTP API, Lighthouse should properly shutdown on an interrupt such asCtrl+C
, however it does not.Present Behaviour
beacon_node
beacon_node
beacon_node
hangs indefinitely, until...beacon_node
exits.Expected Behaviour
beacon_node
beacon_node
beacon_node
exits.Steps to resolve
There are several issues on the hyper github which may assist in resolving this issue, these must be revised and a solution devised that is elegant and encompasses all of the client services (API, RPC, etc.).
e.g. hyperium/hyper#1681
The text was updated successfully, but these errors were encountered: