aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes What does cause Socket not getting response? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "What does cause Socket not getting response?" Watch "What does cause Socket not getting response?" New topic
Author

What does cause Socket not getting response?

Sky Loi
Ranch Hand

Joined: Oct 06, 2008
Posts: 65
I have Socket connection to 3rd party server to handle the request and response. These days, we found Socket read timeout exception when the socket waiting for response. The request I sent out has no problem. What will cause Socket not getting response? I have the following thinking: 3rd party server does not send response at all.

Is there any other case?
1. Firewall block the response somehow?
2. Response message is lost some where?
etc

Thanks for your idea in advance.
luri ron
Ranch Hand

Joined: Dec 11, 2008
Posts: 87
do a traceroute to see if there is any packet drop in your network route.
if not, it is the application related.
Ryan Beckett
Ranch Hand

Joined: Feb 22, 2009
Posts: 192
If you can connect through HTTP, then try using the port 5678 for the Socket.
 
wood burning stoves
 
subject: What does cause Socket not getting response?