MCV-Software / TWBlue

TWBlue, an accessible, open source and multiplatform twitter application.
GNU General Public License v2.0
59 stars 36 forks source link

streaming seems to quit working periodically #684

Open musicalman opened 3 months ago

musicalman commented 3 months ago

Hi, Usually if I get mentioned on Mastodon, it shows up instantly in my mentions buffer. However, now I'm having this issue where messages are being delayed by several minutes unless I manually update, which leads me to believe that streaming is having issues. When this occurs, I'll sometimes get an announcement of 'new post in mentions/direct messages' , but I have to either update the buffer manually or wait for it to update on its own before I can read the message. Tbh, I'm kind of confused, since I never get this 'new post' announcement when streaming works. To get streaming back, I restart TWBlue and all is well again, for a little while at least.

Lately, this issue has been happening a lot more since my Internet connection flickers frequently. Every time it goes offline, streaming breaks. This can be frustrating during its crazy spells when it's going on and off every few minutes. I of course am trying to get it fixed, but yeah I'm wondering if this is exposing some TWBlue issue with restoring lost connections.

I'd love to know more, but I don't even know where to start investigating, since I know very little about Mastodon and how clients work and connect to things. My two main questions at the moment are: When streaming breaks, is there a more painless way to fix it other than restart TWBlue? And second, is there any diagnostic information I can provide to help troubleshoot? Thanks so much for your time!

manuelcortez commented 4 days ago

Hi, thanks for the report. Will add some code to manage streaming errors. It seems you're having some disconnections in the streaming listener class and taht's why it happens. TWBlue should be able to fix it by itself but it seems It hasn't been fully implemented yet.