You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2003/04/10 08:49:44 UTC
DO NOT REPLY [Bug 18893] New: -
Endless loop in MultiThreadedHttpConnectionManager
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
);
};
}
}