You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Adrian Sutton <ad...@ephox.com> on 2003/04/10 00:33:42 UTC
RE: [httpclient] MultiThreadedHttpConnectionManager strange getCo
nnection()
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