S
Snyke
Hi,
I'm writing an application that needs to check the reachability of some
hosts. I decided httpclient would be the nicest thing to use in my
case. My Problem now is that no matter if I set a timeout using the
following code:
client.getParams().setParameter("http.socket.timeout", new
Integer(1000));
the application hangs and really much time is lost waiting for the code
above to terminate. Is there a safe and secure way to ensure that the
whole connection Progress including domain name resolving, connection,
request sending and response receiving does not take longer than a
certain amount of time? In most cases the application just hangs trying
to connect to a certain host.
Could you help me?
Greets, Snyke
I'm writing an application that needs to check the reachability of some
hosts. I decided httpclient would be the nicest thing to use in my
case. My Problem now is that no matter if I set a timeout using the
following code:
client.getParams().setParameter("http.socket.timeout", new
Integer(1000));
the application hangs and really much time is lost waiting for the code
above to terminate. Is there a safe and secure way to ensure that the
whole connection Progress including domain name resolving, connection,
request sending and response receiving does not take longer than a
certain amount of time? In most cases the application just hangs trying
to connect to a certain host.
Could you help me?
Greets, Snyke