DCD icon indicating copy to clipboard operation
DCD copied to clipboard

AutoKill process

Open Scellow opened this issue 8 years ago • 4 comments

Hello

In some case it might be impossible to manage process from IDE

Would be nice to have a way for dcd-server to autokill if client fails to send a KeepAlive message after x sec/min/hour

Proposition:

A new param: --keep-alive-req 5000

If using this param, dcd-server will require a KeepAlive message every 5000 milliseconds, or it'll auto kill

Scellow avatar Dec 30 '17 08:12 Scellow

Which IDE doesn't allow this? How would you start the process for use in the IDE?

I guess just a kill command instead wouldn't work, as then dcd-server would still be alive if the IDE closes without sending the kill command?

skl131313 avatar Dec 31 '17 02:12 skl131313

if the IDE crashes or doesn't have a shutdown signal (because it's only a plugin) this would be useful for example

WebFreak001 avatar Dec 31 '17 02:12 WebFreak001

No need for a keepalive / timer, you can use stdin for this. If a command-line switch is present and stdin is closed (EOF), then it's time to exit. Then the IDE doesn't have to worry about telling DCD to shut down at all.

CyberShadow avatar Jan 13 '19 00:01 CyberShadow

sorry it was closed by error

ghost avatar Jan 13 '19 03:01 ghost