NodeJS Connector FIN_WAIT2

I have a working nodejs server for communicating sockets with clients. After some time (several days), nodejs gets 100% CPU utilization. Looking at netstat for the node port, I found more than 1,000 connections with the FIN_WAIT2 state (there should be only about 50 active connections). I use the timeout function for connections by calling end () after a specific timeout. But this does not seem to close the connection. So, is the () valid way to close the socket connection over or use something else?

+4
source share

Source: https://habr.com/ru/post/1441119/


All Articles