strukturag / nextcloud-spreedme

Spreed.ME Nextcloud app
https://www.spreed.me
GNU Affero General Public License v3.0
56 stars 26 forks source link

How to clean users ghost sessions created by network failures during sessions etc. #82

Open kaksikanaa opened 7 years ago

kaksikanaa commented 7 years ago

If users use Iridium browser as a client a whole day (or even days and use hibernations during the night) and during that time there is unexpected network failure or other connectivity problem, the result is users ghost sessions in the main room active contact list shown to the other users. Is there any way on the server side to avoid this situation somehow eg. to refresh the users and their clients status automatically?

At the moment we have to restart the server but even after that there seems to be those ghost sessions left afterwards.

leonklingele commented 7 years ago

@longsleep can help with this one

longsleep commented 7 years ago

What version is this. There have been an issues in older versions where in some cases, connections were not cleaned up. Please update to the latest (0.29 or newer). A session should disappear as soon as the underlying network connection gets disconnected on the server.

kaksikanaa commented 7 years ago

We have not had any issues since update to the newest version so this is solved.

kaksikanaa commented 7 years ago

Hello! We have still ended up to the same situation with server version 0.29.6 -> Any ideas of the cause and how to fixit?

capture

kaksikanaa commented 7 years ago

This is what can be found from the spreed.log:

server 2017/09/dd 14:50:18.847777 Unicast To not found S8oXpFF1LyaxOSM4WKoFlJmEoziVmHlGyd2lCTokfa18PT1nSXEtUC12987uy65gt54rZ6QlhJZGFDTlZzMFVjMXoyaDlSQkRGV3prakpGVkNnNjM2RG0yRFc0M3ZHU3hSczFTZWZhaExHfDM3MDgxOTUwNTE=