Skip to content
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

Getting Connection Refused error #197

Open
GoogleCodeExporter opened this issue Apr 23, 2015 · 3 comments
Open

Getting Connection Refused error #197

GoogleCodeExporter opened this issue Apr 23, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Are you try this using tibco?

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

@GoogleCodeExporter
Copy link
Author

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

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

No branches or pull requests

1 participant