Something on Windows (11, node 17) does not clean up the addon properly I think, when you exit the last remaining worker thread that imported uWS.js it crashes the process with code 3221225477 'invalid access', this does not happen on Linux. This is not the worst thing because closing the last worker thread usually means you are done with the process, but clean exit would be good
Uncomment require('uWebSockets.js') and get process crash on thread exit, worker thread (inside) exited gets logged but worker thread (from main) exited and main thread exited don't get logged
Something on Windows (11, node 17) does not clean up the addon properly I think, when you exit the last remaining worker thread that imported uWS.js it crashes the process with code 3221225477 'invalid access', this does not happen on Linux. This is not the worst thing because closing the last worker thread usually means you are done with the process, but clean exit would be good
Uncomment
require('uWebSockets.js')
and get process crash on thread exit,worker thread (inside) exited
gets logged butworker thread (from main) exited
andmain thread exited
don't get loggedhttps://nodejs.org/api/addons.html#worker-support