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]
