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

{timeout, x} #205

Open
byronpc opened this issue Sep 19, 2017 · 2 comments
Open

{timeout, x} #205

byronpc opened this issue Sep 19, 2017 · 2 comments

Comments

@byronpc
Copy link

byronpc commented Sep 19, 2017

Hi,

We started integrating v2 of apns4erl on our system. We used to use version 1.x before. What we notice though with the new system is that if the connection to apns has been idle for awhile (not sure specifically how long, but we're trying to measure right now), seems the connection gets broken and the lib just keeps returning {timeout, x} where x is the id from what I read in your docs. We had to restart the connections made by apns4erl before it starts to work again. Have you guys experienced this issue? Is there some sort of keep-alive feature?

Thanks!

Sample log before restarting apns4erl

10:52:54.798 [error] Unhandled APNS error: {<<"bcafd16c31b2d596d71a736f8b010933793020480b8889f76003b4f2bd8119f8">>,{timeout,21}}
10:53:04.800 [error] Unhandled APNS error: {<<"bcafd16c31b2d596d71a736f8b010933793020480b8889f76003b4f2bd8119f8">>,{timeout,21}}
10:53:14.802 [error] Unhandled APNS error: {<<"bcafd16c31b2d596d71a736f8b010933793020480b8889f76003b4f2bd8119f8">>,{timeout,21}}
10:53:24.804 [error] Unhandled APNS error: {<<"bcafd16c31b2d596d71a736f8b010933793020480b8889f76003b4f2bd8119f8">>,{timeout,23}}
10:53:34.806 [error] Unhandled APNS error: {<<"bcafd16c31b2d596d71a736f8b010933793020480b8889f76003b4f2bd8119f8">>,{timeout,23}}
10:53:44.807 [error] Unhandled APNS error: {<<"bcafd16c31b2d596d71a736f8b010933793020480b8889f76003b4f2bd8119f8">>,{timeout,23}}
10:53:54.809 [error] Unhandled APNS error: {<<"bcafd16c31b2d596d71a736f8b010933793020480b8889f76003b4f2bd8119f8">>,{timeout,23}}
10:54:04.810 [error] Unhandled APNS error: {<<"bcafd16c31b2d596d71a736f8b010933793020480b8889f76003b4f2bd8119f8">>,{timeout,25}}
10:54:14.811 [error] Unhandled APNS error: {<<"bcafd16c31b2d596d71a736f8b010933793020480b8889f76003b4f2bd8119f8">>,{timeout,25}}
10:54:24.813 [error] Unhandled APNS error: {<<"bcafd16c31b2d596d71a736f8b010933793020480b8889f76003b4f2bd8119f8">>,{timeout,25}}
@jacktang
Copy link

we face the same problem...

@jpjodoin
Copy link

Did you figure it out ? I'm seeing the same on my side.

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

3 participants