Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes when disconnected for 1+ hours #427

Open
spasbilyarski opened this issue Apr 16, 2024 · 0 comments
Open

Crashes when disconnected for 1+ hours #427

spasbilyarski opened this issue Apr 16, 2024 · 0 comments

Comments

@spasbilyarski
Copy link

Steps to reproduce

  • Setup a Pusher connection with autoReconnect enabled
  • Set UIApplication's isIdleTimerDisabled to true to prevent locking of the device
  • Disable internet connection
  • Wait a couple of hours

Expected behavior

  • The socket service tries to reconnect in background. As soon as the internet resumes the sockets connect and receives messages.

Actual behavior

There are a couple of variants:

  • The connection disconnects completely and you need to relaunch the application.
  • We built a more graceful reconnect ontop of the built in retries. This variant causes the crashes on 10.1.4 and same behavior as above on 10.1.5

Any improvements you suggest

At the moment we are experiencing thousands of crashes. I would love to remove our reconnection logic but the current autoReconnect logic is super unreliable. I can share crashlogs but since it contains product logic it needs to be shared in private.

...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant