UniquePersistent all over, app.forcefully_free
This commit is contained in:
parent
f2a5d95726
commit
ba73b8882d
3 changed files with 34 additions and 19 deletions
|
@ -37,3 +37,9 @@ const app = uWS./*SSL*/App({
|
|||
console.log('Failed to listen to port ' + port);
|
||||
}
|
||||
});
|
||||
|
||||
/* This is questionable */
|
||||
process.on('beforeExit', () => {
|
||||
console.log('Forcefully freeing app now');
|
||||
app.forcefully_free();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue