-
Notifications
You must be signed in to change notification settings - Fork 450
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
Connection reset by peer #257
Comments
How often is "from time to time?" Are notifications ever sent as expected? |
Yep, notifications are sent regulary, but when there is a bigger timeout between sending notifications, the first notification sending throws this error and after that, next one is sent normally. |
Hm. Sounds like we might be getting a server-initiated I'll try to set up some experiments with really verbose logging to see if the |
Might be reconnect can happen only when sending the next notification? I am just thinking of a case when system is mostly idle at night time, why should be pinging/reconnecting all night? |
And a little more info. This code is working:
|
@panchenko Well, to turn the question around, what's the cost in doing so? One perspective is that the caller asked us to connect, so they still expect us to be connected and ready to blast notifications through as quickly as possible.
@abraxascorner Can you summarize what's different about that code and how it's behaving differently than your first example? |
Well, the only difference I see is that in first example, I am getting the future object (since I want to return if apns accepted notification) and in other example I am adding listener.
Building notifs and catching of ex are the same. |
Ou, and one more thing, sorry for not bringing sooner, last night I noticed. I am using 0.54 or 0.52 and not 0.6 version (I don't have code at the moment). I updated to the newest version and tonight (CET time :)), I will test on 0.6 version. |
Ok, new info. :) |
So… does that mean you think this is fixed in 0.6? |
Well, I don't know. :) |
Thank you for all the help. |
#266 adds an idle state handler that will send |
Hi,
I am using client for sending both standard and voip push messages and have the following exception occurs from time to time in my logs:
I am connecting client on the load of my app and some other application calls mine when I need to send voip notification:
client instantiation:
And code for sending notifications:
Is there something I am doing wrong?
The text was updated successfully, but these errors were encountered: