hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18893] New: - Endless loop in MultiThreadedHttpConnectionManager
Date Thu, 10 Apr 2003 06:49:44 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18893>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18893

Endless loop in MultiThreadedHttpConnectionManager

           Summary: Endless loop in MultiThreadedHttpConnectionManager
           Product: Commons
           Version: 2.0 Alpha 3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HttpClient
        AssignedTo: commons-httpclient-dev@jakarta.apache.org
        ReportedBy: Gael.Marziou@topservice.com


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 of suspicious method below.

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