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

Implement auto-termination #98

Open
abingham opened this issue Nov 12, 2017 · 1 comment
Open

Implement auto-termination #98

abingham opened this issue Nov 12, 2017 · 1 comment
Labels

Comments

@abingham
Copy link
Owner

It probably makes sense for traad servers to kill themselves after a certain period of inactivity. This is similar to e.g. ycmd. This way clients don't need to be perfect about stopping servers.

This means that clients need to account for the possibility that a server will die. The emacs client does this already, and it doesn't seem too onerous.

@abingham abingham added the task label Nov 12, 2017
@abingham
Copy link
Owner Author

abingham commented Jan 9, 2018

There might be options for using a WSGI server like Rocket to handle this. It would be nice if the server had a native "auto shutdown" feature, but we might have to roll our own. For example, the WSGI server would handle connections in a separate thread. Another thread would have a timer that get reset on each connection. If the timeout was reached with no connections then the server would be killed and program terminated. How do we monitor connections on one thread from another? The WSGI server would need to provide some way of doing this, I guess.

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

No branches or pull requests

1 participant