zhaojh329 / rttys

Access your device's terminal from anywhere via the web.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Devices get disconnected due to inactivity while being active

ostl-iris opened this issue · comments

Environment

rtty

  • arch: mips
  • os: OpenWRT
  • version: 7.4

rttys

  • arch: x64
  • os: Windows
  • version: 3.5

Description

Some of our devices get disconnected every few seconds. Then they reconnect, get disconnected and so on. Sometimes, when one is fast enough, it is possible to log into one device which sometimes results in this device staying connected.
Another thing to be noted is that the uptime of the affected devices is always shown as 0h 0m 0s, which is not correct, since other services of the same device are sending data continuously.

Does anyone know what could cause this error and how to fix it?

Server log :

2022-04-25T12:46:24Z |INFO| broker.go:79 |New device: 1112904840
2022-04-25T12:46:32Z |ERROR| device.go:128 |Inactive device in long time: 1112904840
2022-04-25T12:46:33Z |ERROR| device.go:128 |Inactive device in long time: 1112904840
2022-04-25T12:46:34Z |ERROR| device.go:128 |Inactive device in long time: 1112904840
2022-04-25T12:46:34Z |ERROR| device.go:130 |Inactive 3 times, now kill it: 1112904840
2022-04-25T12:46:34Z |INFO| device.go:90 |Device '1112904840' closed

Probably related issues

Issue 95 (What was the outcome here??)

Please use latest version.