• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting java.net.SocketException: Connection reset - on high traffic times

 
Sean Chang
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my web application, I am calling an external site via URLConnection. Any random times (usually when there is high volume), I am getting a java.net.SocketException: Connection reset problem. Below is the code, any suggestions on how to improve it, or make adjustments will be appreciated.



 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have the same problem when you open this site in a browser? Perhaps the server simply cannot handle all the traffic.
 
Sean Chang
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This only happens during certain times of the day when there is higher traffic, when I copy/paste the URL in a browser, it works fine.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!