kennedyshead / aioasuswrt

MIT License
24 stars 24 forks source link

Closing telnet session when done #25

Closed flysen closed 5 years ago

flysen commented 5 years ago

Question from a noob in this area. From what I understand Home Assistant uses aioasuswrt to pull data from asus devices. I have a RT-N66U where I use telnet to pull data from router. The problem I have now is the router end up with ~400 telnet connections after a while and stops wotking.

Feb 17 20:00:37 disk_monitor: Got SIGALRM... 
Feb 17 20:11:49 kernel: SKIPPED false Type 6 Radar Detection. min_pw=24 pw_delta=0 pri=60119 fm_min=0 fm_max=0 nconsecq_pulses=1. Time from last detection = 1894, = 31min 34sec. Detected pulse index: 4 
Feb 17 20:28:44 telnetd[332]: vfork: Cannot allocate memory 
Feb 17 20:29:05 telnetd[332]: vfork: Cannot allocate memory

From router: N66U:/tmp# netstat -t| grep telnet|wc -l with a result of 386.

I do have an option in the router gui to "close telnet sessions with a value between 10-99" turning that on will do some hourekeeping and everythings works again.

So my question is, where and who will close the session?

Cheers Fredrik

flysen commented 5 years ago

Fixed in #20