hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject RE: ThreadSafeClientConnectionManager and KeepAlive connnections [I]
Date Thu, 08 Sep 2011 18:17:52 GMT
On Thu, 2011-09-08 at 12:10 -0500, Thomas Kunnumpurath wrote:
> Classification: For internal use only 
> 
> Oleg/Sam,
> 
> Thanks a lot for both your help! The issue is now resolved.
> 
> Question though is why does the logs show that the connection is reusable, 

Because the connection is perfectly reusable. However, since the
connection carries a certain state (a user identity) it can be re-used
by the same user only.

> getting free connection etc when in fact it is opening a new socket?
> 

If the connection pool is full, the connection manager has no other
choice but to drop stateful persistent connections in order to make room
for new connections. 

> DEBUG 03:07:03.490 - 08/09/2011 [pool-1-thread-43] [] o.a.h.i.c.t.ConnPoolByRoute - [HttpRoute[{s
https://xxxx.intranet.com:410]] total kept alive: 10, total issued: 0, total allocated: 10
out of 10 DEBUG 03:07:03.490 - 08/09/2011 [pool-1-thread-43] [] o.a.h.i.c.DefaultClientConnection
- Connection closed DEBUG 03:07:03.490 - 08/09/2011 [pool-1-thread-43] [] o.a.h.i.c.t.ConnPoolByRoute
- Getting free connection [HttpRoute[{s}->https://xxxx.intranet.com:410]][null]
> 
> 
> Should there not be a debug statement in there that says "Cannot find free connection
with context [null], creating a new one"
> 
> I think this would make things more clear.
> 

I'll look into it.

Cheers

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message