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

/shutdown on the admin port no longer results in the process shutting down #70

Open
stevej opened this issue Jul 11, 2017 · 1 comment

Comments

@stevej
Copy link

stevej commented Jul 11, 2017

$ curl -X POST -vvvv  http://127.0.0.1:9989/shutdown
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 9989 (#0)
> POST /shutdown HTTP/1.1
> Host: 127.0.0.1:9989
> User-Agent: curl/7.52.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Length: 0
< Date: Tue, 11 Jul 2017 22:50:51 GMT
<
* Curl_http_done: called premature == 0
* Connection #0 to host 127.0.0.1 left intact

A few minutes later, the process is still running.

@hawkw
Copy link
Member

hawkw commented Jul 19, 2017

I did some digging, and it looks like this is because the admin thread never actually joins – when it receives the /shutdown endpoint, it sends the shutdown signal on Closer but then just happily goes back to serving the admin service.

I'm guessing that the correct behavior is either to wait the grace period and then exit, or to wait until all the router threads have joined, and then exit? If the latter, then the admin thread will presumably need some way of knowing if the router threads have joined, which it doesn't currently have...

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