You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. I am using the attached Java Code to send notifications.
2.I am using the Payload method.
3. I am not using any multi threading or connection pooling settings.
What is the expected output? What do you see instead?
For around 4 out of 200 requests I get the error "Communication exception:
java.net.ConnectException: Connection refused|||||Communication exception:
java.net.ConnectException: Connection refused"
What version of the product are you using? On what operating system?
OS: Linux 2.6.32-279.el6.x86_64
JavaPNS_2.2
Please provide any additional information below.
Every request takes around 3-6 seconds. Is there a way to reduce the time per
request and also prevent these errors?
Original issue reported on code.google.com by aalap2...@gmail.com on 9 Sep 2013 at 7:20
When you say "4 out of 200 requests", are you running your entire code 200
times? Or do you mean you have a list of 200 devices passed to the single
"payload" method call I see in your code?
Since the payload method opens a single connection to push your payload to all
devices provided in parameter, I do not understand how you could have
communication exceptions for some payloads.
Original comment by sype...@gmail.com on 11 Oct 2014 at 9:38
Original issue reported on code.google.com by
aalap2...@gmail.com
on 9 Sep 2013 at 7:20Attachments:
The text was updated successfully, but these errors were encountered: