android icon indicating copy to clipboard operation
android copied to clipboard

Websocket failure connection issues on the F-Droid version client

Open alexdwork2018 opened this issue 4 years ago • 4 comments

https://sentry.io/organizations/ctemplar/issues/2908526132/?project=5462074 https://sentry.io/organizations/ctemplar/issues/2931544404/?project=5462074 https://sentry.io/organizations/ctemplar/issues/2923050349/?project=5462074

alexdwork2018 avatar Jan 19 '22 12:01 alexdwork2018

There are two or three more that can be related in the first page.

The-Hidden-Hand avatar Jan 19 '22 13:01 The-Hidden-Hand

@The-Hidden-Hand Yes, one of them exactly relates to the first issue, perhaps others. I have added them above to follow.

alexdwork2018 avatar Jan 19 '22 14:01 alexdwork2018

https://github.com/CTemplar/android/commit/cf45283b71a499f2fca8c8f818751f0442b861bd After researching the issue, I found out that manual Sentry capture point records each of the user's notification web socket failures. I found out that manual Sentry logging records each of the user's web socket failures.. I repeated the issue on an emulator with parameters close to the issue described. Each web socket connection was failed a minute after initialization. After this client reconnected and all repeated many times. To prevent this I configured okhttp to automatic ping which keeps the connection alive. After testing I made sure this fix allow keeping connections without drops. All project libraries have been updated to the latest versions to include all the latest bug fixes. Libraries updates require the latest SDK so I checked and updated it too.

alexdwork2018 avatar Jan 19 '22 17:01 alexdwork2018

Nice!

The-Hidden-Hand avatar Jan 20 '22 14:01 The-Hidden-Hand