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

Fix to ensure one stream is always available. #82

Merged
merged 1 commit into from
Aug 23, 2019

Conversation

benubois
Copy link
Collaborator

@benubois benubois commented Jun 2, 2019

As discussed in #75, apnotic can block forever if the underlying connection fails. This was introduced in my addition of token-based authentication and this pull request will fix the issue.

When using token-based auth, there is always at least one connection open:

APNs allows only one stream until you post a request with a valid authentication token.

By leaving this connection available, apnotic has the opportunity to repair the connection, and resume sending notifications.

@ostinelli
Copy link
Owner

Thank you @benubois, sorry for late response. Will review and merge in tomorrow.

@ostinelli ostinelli merged commit b71af58 into ostinelli:master Aug 23, 2019
@ostinelli
Copy link
Owner

Merged and released 1.6.0. Thank you.

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

Successfully merging this pull request may close these issues.

2 participants