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
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply 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: 86
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: What does cause Socket not getting response?
 
Similar Threads
How to handle an asynchronized scenario?
redirect within a servlet
How to get the number and response time of HTTP request through Weblogic?
Get java.util.List from webservice
USSD development help