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

What does happen if I don't release the resource and close the node?

Open truthyblue opened this issue 5 years ago • 2 comments

Is it safe to do this regarding memory leak, etc?

truthyblue avatar Nov 18 '21 08:11 truthyblue

Once you close the node process anything that lives inside the node process will be cleaned up by node itself and/or the operating system (if this doesn't happen, then there is a bug with nodejs and/or the operating system . This is true for anything that runs inside the node process, not just generic-pool.

The behaviour of anything you are connecting to from the node process (such as database servers, 3rd party service, external process) is outside the control of node / generic-pool and will be determined by the configuration of whatever server/service/process you are connecting to.

sandfox avatar Nov 19 '21 14:11 sandfox

@sandfox What an answer! Thanks!

truthyblue avatar Nov 19 '21 16:11 truthyblue