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

Stop language server instance when client disconnects #4

Open
kntsoriano opened this issue Nov 20, 2020 · 1 comment
Open

Stop language server instance when client disconnects #4

kntsoriano opened this issue Nov 20, 2020 · 1 comment

Comments

@kntsoriano
Copy link
Collaborator

No description provided.

@Lewiscowles1986
Copy link

Is this repo still active, and is this still a problem?

What have you discussed to approach solving?

Some ideas I have:

  • Heartbeat & TTL based shutdown.
    So long as you heartbeat multiple intervals between ttl, you could have the servers self-shutdown, on what I might call a tick (iteration in a loop); so that the language server instance knows if it should be live.

  • Max runtime / requests
    This borrows an idea from the PHP-FPM server gateway project; likely others. You could optionally remove the server after {N} requests, or during any exceptional events. The cost here is time to spin-up a new language server, so it's opinionated as a choice, but simpler than a heartbeat TTL; and could even be a step towards that goal, as being able to shut-down and boot at subsequent requests underpins stopping servers on disconnect / inactivity.

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