core
core copied to clipboard
Process remains running after server close
Any idea why after server.close
the process remains running?
The session middleware seems to be the cause:
app.use(session({store: 'memory'}))
Ok, it's the scheduleGc
https://github.com/curveball/session/blob/master/src/memorystore.ts#L97 ...
Yes... any further thoughts about this? I don't know if this is easily fixable, but I suppose we could add a function to stop the interval.
Definitely opting out will be awesome. Right now I'm monkey-patching setTimeout so that I can close it on server close ..