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

There's no way to stop a server other than exiting the program #14

Open
AmanitaVerna opened this issue May 24, 2016 · 2 comments
Open

Comments

@AmanitaVerna
Copy link

This seems like a problem if you want to, say, include a feature to change the port via the gowut interface, but can't actually shut down and restart the server.

Googling indicates that it is possible. See for example https://github.com/tylerb/graceful

@willauld
Copy link

I'd second this enhancement. Would the following be directly useful?
https://golang.org/pkg/net/http/#Server.Shutdown

@icza
Copy link
Owner

icza commented Apr 26, 2017

Yes, the graceful shutdown addition in Go 1.8 can be used for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants