Skip to content

Fix: ApnsConnection stops sending notifications #753

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

Closed
wants to merge 1 commit into from

Conversation

nazarii-piontko
Copy link

Fix: ApnsConnection stops sending notifications after few sent and stucks in Log.Info (console less application), this produces many pending tasks.

…ucks in Log.Info (console less application), this produces many pending tasks.
@DFortun81
Copy link

DFortun81 commented Oct 26, 2016

This fixed a ton of problems, thank you very much! We still seem to be encountering false positives every once in a while.

log.txt

In the file I attached, I added a bunch of extra debugging logic. This reports when a notification was successful or a failure and maintains an incrementer for both stats.

I received Testing # 3, 4, 6, 7, and 8. I did NOT receive 5. 5 had reported a false positive and sent an OnNotificationSucceeded invocation. It appears as though 6 detected that it was disconnected, properly reconnected, and then sent itself out. It was just that 5 reported incorrectly and ended up not getting sent when it was supposed to.

EDIT: I should mention that we're using a Microsoft Azure Virtual Machine for hosting.

@DFortun81
Copy link

I will continue to investigate this problem and post a fix if I find one.

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