anode icon indicating copy to clipboard operation
anode copied to clipboard

Ports not being released on stop?

Open feichh opened this issue 12 years ago • 1 comments

Hi, It seems to me that the listening sockets are kept open after i stop an isolate, until I force stop the app through the app settings. This can cause EADDRINUSE errors, when a server is started again.

cheers

feichh avatar Jun 12 '13 15:06 feichh

That's correct, and it's because the process itself doesn't exit. Apps that rely on the process exit to clean up will leak, so it is the responsibility of the app to close listeners on exit.

My plan was to extend libuv to track all open handles associated with an isolate, and forcibly close them down. I didn't get to do that, but it's part of the plan for migrating to 0.11.

paddybyers avatar Jun 12 '13 21:06 paddybyers