commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Sutton <adrian.sut...@ephox.com>
Subject RE: [httpclient] MultiThreadedHttpConnectionManager strange getCo nnection()
Date Wed, 09 Apr 2003 22:33:42 GMT
er, um, gee...  That does look awfully suspicous. :)  Could you please file
a bug report on this at http://nagoya.apache.org/bugzilla/

Please be sure to log it under the HttpClient component of the commons
project.

Adrian Sutton, Software Engineer
Ephox Corporation
www.ephox.com


-----Original Message-----
From: news [mailto:news@main.gmane.org]On Behalf Of Gael Marziou
Sent: Thursday, 10 April 2003 7:45 AM
To: commons-user@jakarta.apache.org
Subject: [httpclient] MultiThreadedHttpConnectionManager strange
getConnection()


Hello,

In MultiThreadedHttpConnectionManager, there is a getConnection()
method that I don't understand. To me, it would seem that this method
would loop forever in case it is unable to connect to the host.

Am I missing something here?

Here is the code extract below.

Thanks,

Gael


public HttpConnection getConnection(HostConfiguration
hostConfiguration) {

        while (true) {
            try {
                return getConnection(hostConfiguration, 0);
            } catch (HttpException e) {
                LOG.debug(
                    "Unexpected exception while waiting for
connection",
                    e
                );
            };
        }

    }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message