Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting conection refused connect while using ssl over apache http client

 
pradeep tiwari
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
any update please
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
  • 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 Java MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
  • 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

 
Emmett Smith
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like your port is closing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic