Skip to content

{timeout, x} #205

Description

@byronpc

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}}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions