Thank U all for your fast posts! Another urgent issue came up in the project so i have not yet had time to test your ideas yet. It might by the DNS lookup as Julius suggested, that is taking too long, i will test it as soon as i get a chance.
I'm using JRockit 1.4.X on linux (Red hat, dont know the version nr.) // Peter Wenngren 2006/2/14, Oleg Kalnichevski <[EMAIL PROTECTED]>: > On Tue, 2006-02-14 at 16:51 +0100, Peter Wenngren wrote: > > Hello gurus! > > > > I'm having problems with a very long Connection-timeout (about 3 > > minutes!) time when trying to send a http-query to a non existing > > server. I've tried to set the setSoTimeout() method on the HttpClient > > instance and setConnectionManagerTimeout() on the > > MultiThreadedHttpConnectionManager used by the HttpClient. But, no > > success... > > > > How do I set the maximum amount of time to wait for a connection to a > > non-existing host? > > > > I'm using HttpClient v.3.0 on a Bea WLS 8.14 running on jrockit JVM. > > > > Peter, > There is no reliable way to implement socket connect timeout in Java > before 1.4. What's the JVM version you are using? > > Oleg > > > > Any suggestions on how I can abort the connection after a few > > seconds/failed attempts to produce connection? > > > > Thanks! > > > > // Peter Wenngren > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
