commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Glück <ortwin.glu...@nose.ch>
Subject Re: [HttpClient] Timeout Exception
Date Fri, 20 Dec 2002 12:50:57 GMT
Note that there are two kinds of connection timeouts!
One is the timeout used when establishing a connection 
(HttpClient.setConnectionTimeout),
the other is the timout used when no traffic occurs on Socket 
(HttpClient.setTimeout).

The first kind is not included in previous releases. The 
HttpConnection.ConnectionTimeoutException is thrown from the 
HttpConnection.open() Method.

The seconds kind is included in previous releases and a 
java.io.InterruptedIOException is thrown on blocking reads from the 
InputStream.

Odi

Balz Schreier wrote:
> two questions:
> 
> 1) does only release 2 support the ConnectionTimeoutException?
> 2) is the exception actually thrown when a socket timeout occurrs? which method does
throw it?
> 
> Thanks!

-- 
_________________________________________________________________
  NOSE applied intelligence ag
                                    [www]      http://www.nose.ch
  ortwin glück                      [email] ortwin.glueck@nose.ch
  hardturmstrasse 171               [pgp key]          0x81CF3416
  8005 zurich                       [office]      +41-1-277 57 35
  switzerland                       [fax]         +41-1-277 57 12


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message