1

nodejs socket.io server's active handles are not reducing. Active handles' count reached 4080 in 6 hours and the server can not accept any new connections. What are the reasons an active handle might not close ?

Gandalf the White
  • 2,415
  • 2
  • 18
  • 39
  • i. Is it increasing per connection as well on every recurring connect? ii. You have added timeout etc. properly every connection? – Gandalf the White Feb 20 '20 at 11:58
  • its increasing with every new connection. does a timeout run from socket event keep the socket alive after disconnect even if the timeout does not hold socket refererence ??? – user3315036 Feb 20 '20 at 13:40
  • Basically they are not getting cleared, you can find multiple references on that. Recurring connections on very reconnect socket.io – Gandalf the White Feb 24 '20 at 06:05
  • Have a look at https://stackoverflow.com/questions/48691887/what-are-active-handles-in-node-js – Suzana Feb 22 '23 at 17:49

0 Answers0