osquery-node icon indicating copy to clipboard operation
osquery-node copied to clipboard

Server listen does not clean up used socket path

Open Downchuck opened this issue 10 years ago • 2 comments

Apparently this can lead to many "/var/osquery/osquery.em.*" files and attempts address in use errors. This may only happen if the script is terminated unexpectedly (not sure).

Downchuck avatar Aug 31 '15 20:08 Downchuck

not sure if there is automatic way to delete them, I guess you need to unlink explicitly when no longer need

sidorares avatar Aug 31 '15 23:08 sidorares

Correct; http://stackoverflow.com/questions/16178239/gracefully-shutdown-unix-socket-server-on-nodejs-running-under-forever

Downchuck avatar Aug 31 '15 23:08 Downchuck