hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ROLWE...@de.ibm.com>
Subject RE: MultiThreadedHttpConnectionManager - how many threads waiting for a connection?
Date Fri, 27 Apr 2007 07:35:23 GMT
Hello Bertrand,

asking will not be enough. Providing a patch has
much better chances of success. Minimizing
changes is also beneficial. If it's just two private
modifiers that you change to protected or so,
it's definitely worth a shot.

If it's only a count you need, you can extend the
existing MTHCM and override getConnection().
Put in a try/finally block, increment the counter
before calling the base class method and
decrement it in the finally{} block. Don't
forget to synchronize access to the counter.

hope that helps,

View raw message