jurna / javapns

Automatically exported from code.google.com/p/javapns
0 stars 0 forks source link

Getting Connection Refused error #197

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Are you try this using tibco?

Original comment by compchap...@gmail.com on 4 Oct 2013 at 8:03

GoogleCodeExporter commented 9 years ago
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