Hi Juan,

Yes, you are correct. getConnectionsIsUse() is slightly misleading. Please take a look at bug #29383 <http://issues.apache.org/bugzilla/show_bug.cgi?id=29383> for some more details on this one. This bug contains a patch that should resolve the problem. Please let us know if you have any other thoughts, and if this patch fixes the problem for you.

Mike

On Jun 21, 2004, at 11:05 AM, Juan Pedro López Sáez wrote:

Hello.

Testing the MultiThreadedHttpConnectionManager, I have realized that the
number retrieved by calling the getConnectionsInUse methods is
independent whether the HTTP connection is actually opened or not.


So it's seems to be a counter for the number of connections in pool
instead of a counter of really opened connections.

Is this true? Is there any way to know the number of really opened
connections?

I tested this by setting the HTTP header "Connection: close". I could
see that HttpConnection.close() and HttpConnection.closeSockedAndStreams
are called, so I guess connections in pool are really closed.


Thank you very much.

        Juan Pedro Lopez



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to