commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gael Marziou <gael.marz...@.free.fr>
Subject [httpclient] MultiThreadedHttpConnectionManager strange getConnection()
Date Wed, 09 Apr 2003 21:44:33 GMT
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
                );
            };
        }

    }



Mime
View raw message