-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Implement a "/shutdown" endpoint #771
Comments
There is no |
This endpoint is just how all the language bindings notify the driver service to quit, allowing a controlled shutdown rather than a potential |
Ideally a parent process should ask nicely with SIGTERM (15) before using SIGKILL (9). This would be functionally equivalent to having an HTTP endpoint for it. (Practically we don’t have any special shutdown handling in geckodriver yet because signal handling with Rust is not great yet.) |
Sure. That'd be the nice way to do it. None of the language bindings do that, but it'd also be nice (the java ones might…). Feel free to open a reciprocal selenium issue :)
…Sent from my iPhone
On 7 Jun 2017, at 12:55, Andreas Tolfsen ***@***.***> wrote:
Ideally a parent process should ask nicely with SIGTERM (15) before using SIGKILL (9). This would be functionally equivalent to having an HTTP endpoint for it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@andreastt Given that Windows doesn't have SIGTERM and SIGKILL, what's the suggestion for that platform? |
As I said, just terminating geckodriver is absolutely fine. There’s no state in geckodriver that requires cleanup. |
If there is a requirement to have an endpoint here it should be in the spec. But an endpoint for this seems like bad design since you probably don't want random clients to shut down the entire service. Instead that can be in control of whoever owns the process using standard os methods for pprocess control. Closing this, but feel free to reopen if there's anything extra we should do here. |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have run into an issue you think is related, please open a new issue. |
With reference to SeleniumHQ/selenium#3978. The ChromeDriver and IEDriverServer both understand a
/shutdown
endpoint that can be used to quit the service. All the official language bindings attempt to call this URL before killing the service process. It might be nice to also implement this in geckodriver.The text was updated successfully, but these errors were encountered: