Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

httpclient: Setting a Timeout

Thread view: 
Snyke - 19 Jan 2006 21:07 GMT
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
John C. Bollinger - 20 Jan 2006 05:02 GMT
> 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
[quoted text clipped - 10 lines]
> certain amount of time? In most cases the application just hangs trying
> to connect to a certain host.

See my response to "Brent" in thread "Jakarta's Latest HttpClient".  If
you are the same as he then stop posting the same question multiple
times.  If you and he are working on this project together, then please
coordinate your advice-seeking.  In any other case, it may please you to
know that your competition is stuck at the same place you are.

Signature

John Bollinger
jobollin@indiana.edu



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.