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

Ferigis.131.backoff #143

Closed
wants to merge 10 commits into from
Closed

Ferigis.131.backoff #143

wants to merge 10 commits into from

Conversation

ferigis
Copy link
Member

@ferigis ferigis commented Feb 10, 2017

[close #131]

@ferigis ferigis added this to the 2.0.0 milestone Feb 10, 2017
@ferigis ferigis closed this Feb 10, 2017
@ferigis ferigis reopened this Feb 10, 2017
README.md Outdated
@@ -172,6 +172,12 @@ We can use this token for an entire hour, after that we will receive something l
[{<<"reason">>,<<"ExpiredProviderToken">>}]}
```

## Reconnection

If network goes down or something unexpected happens the `gun` connection with APNs will go down. In that case `apns4erl` will send an message `{reconnecting, ServerPid}` to the client process, that means `apns4erl` lost the connection and it is trying to reconnect. Once the connection has been recover a `{connection_up, ServerPid}` message will be send.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will send an message -> will send a message.

R when R > Ceiling ->
Ceiling;
NextN ->
NString = float_to_list(NextN, [{decimals, 0}]),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bad indentation (include the next line).

@ferigis ferigis closed this Feb 10, 2017
@ferigis ferigis deleted the ferigis.131.backoff branch February 10, 2017 21:03
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.

Exponential Backoff when restarting gun connection
3 participants