This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Connection Timeout Issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Connection Timeout Issues" Watch "Connection Timeout Issues" New topic

Connection Timeout Issues

Tapan Agarwal

Joined: Nov 22, 2012
Posts: 13
Hi Guys need your help....
I want to check the existence of a particular file in a server from my application...
The used the following code-

The code was working fine as long as the server was up...
Once the server was down(Thanks to Sandy) and up again,my application started showing errors.
I looked into the log files and found that the application was no longer able to connect with the server and throwing Time Out Exception after 120 seconds.
I tried to open the file from a browser and it working perfectly fine...
Is there a problem with the codes or the server..


Tapan Agarwal

Joined: Nov 22, 2012
Posts: 13
The Issue was resolved when the appplication server was restarted..
can anyone tell me what was causing the problem..
It is sorta covered in the JavaRanch Style Guide.
subject: Connection Timeout Issues
It's not a secret anymore!