zhaojh329 / rttys

Access your device's terminal from anywhere via the web.
MIT License
660 stars 190 forks source link

Devices get disconnected due to inactivity while being active #105

Closed ostl-iris closed 2 years ago

ostl-iris commented 2 years ago

Environment

rtty

rttys

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??)

zhaojh329 commented 2 years ago

Please use latest version.

tr4nk0 commented 1 week ago

@ostl-iris Did you solve the issue updating the version? I have the same problem...

ostl-iris commented 1 week ago

Sorry, can't remember tbh - didn't work with rtty in the past 2y.