hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From NGUYEN-VIET Quang <nguyen.viet.quang....@gmail.com>
Subject Question about ThreadSafeClientConnManager change maxTotal on fly
Date Fri, 29 Apr 2016 12:51:33 GMT
Hello,

We use httpclient 4.1. ( we plan to upgrade soon)

Juste a simple question about how connection pool behave  when we change
maxTotal on fly, without releasing connetions in use. ( with
releaseConnection() for instance )

If i increase the maxTotal size, I guess that it's not a problem, it simply
allocate more possible connection in pool.

But how about when we decrease the pool's size and all connexions are
pending or occupied, do they become some kind of zombi connection and we
lost control on these connections.

Can you point me out a test to show this feature ?

Finally, is this a good idea to change maxTotal on fly ?

Thanks

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message