• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

getting conection refused connect while using ssl over apache http client

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ,i m in big trouble m getting connection refused connect while using ssl over apache http client .
after every 4-5 successfull request ,i m getting socket exception when i change my default ip then it runs properly for 2-3 hours without any socket exception
so as a result i have to change my default ip after every 3 hours which is very improper task . m not able to find out that whether the issue is at server side or my client side
because after changing my ip its starts behaving immediately normal ,and m releasing the connection also properly

below is the code

thanks for your interest in this post -_-

 
pradeep tiwari
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
any update please
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you get a connection refused, you may want to telnet to the ip/port and see whether it is open. If it is not then its surely not a client problem.
It might be a problem of conflicting IPs in your network.
 
pradeep tiwari
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Nitesh very very big thanks for your reply

i am getting lots of connection timeout also

out of 3 lakhs request/day i am getting 50000-60000 connection timeout and around 40000 connection refused
the networking guys are blaming to application that application has issues ,as a developer every resource is properly opened and closed but still cant understand where is the issue
immediately after switching to different ISP i used to get no connection timeout and connection refused

is this is problem is related to server backlog queue?
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its difficult to tell what the issue is without knowing the environment of the server.
Connection refused error is thrown when the port is not open
Connection timeout error typically is thrown when the server is not able to respond to the client on time (one of the reasons is the request queue backlog as you mentioned)
 
pradeep tiwari
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for your immediate response nitesh
below is the environment info
os- windows server -2003
java-version - 1.6
web server -resin 4
ssl over Apache httpclient 3.0

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It sounds like your port is closing.
 
Let nothing stop you! Not even this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic