You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Balz Schreier <Ba...@ctp.com> on 2002/12/20 12:02:52 UTC

[HttpClient] Timeout Exception

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!





Balz Schreier
Senior Consultant
Cambridge Technology Partners (Switzerland) S.A.
Leutschenbachstrasse 41
CH-8050 Zürich
Switzerland
Tel: +41 (0) 43 299 76 11
Fax: +41 (0) 43 299 75 01
mailto:Balz.Schreier@ctp.com 
http://www.ctp.com




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [HttpClient] Timeout Exception

Posted by Ortwin Glück <or...@nose.ch>.
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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>