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

Two pings required go get NSStreamEventEndEncountered #55

Open
wtmoose opened this issue Jul 29, 2017 · 0 comments
Open

Two pings required go get NSStreamEventEndEncountered #55

wtmoose opened this issue Jul 29, 2017 · 0 comments

Comments

@wtmoose
Copy link

wtmoose commented Jul 29, 2017

We're seeing that it frequently requires two pings to get NSStreamEventEndEncountered after the app has been suspended for a long time and is awoken by VOIP push. Since pings are 5 seconds apart, there is an additional 5 seconds delay reconnecting to the server.

Our current naive workaround is to make _pingTimerFired public, allowing us to make the second ping much sooner. This consistently reduces the delay to around 0.25 seconds.

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