You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Michael Becke (JIRA)" <ji...@apache.org> on 2006/09/08 18:19:22 UTC
[jira] Resolved: (HTTPCLIENT-597) MultithreadedConnectionManager
and IdleConnectionTimeoutThread improvements
[ http://issues.apache.org/jira/browse/HTTPCLIENT-597?page=all ]
Michael Becke resolved HTTPCLIENT-597.
--------------------------------------
Resolution: Fixed
Assignee: Michael Becke
Patch applied.
> MultithreadedConnectionManager and IdleConnectionTimeoutThread improvements
> ---------------------------------------------------------------------------
>
> Key: HTTPCLIENT-597
> URL: http://issues.apache.org/jira/browse/HTTPCLIENT-597
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpClient
> Affects Versions: 3.1 Alpha 1
> Reporter: Michael Becke
> Assigned To: Michael Becke
> Priority: Minor
> Fix For: 3.1 Beta 1
>
> Attachments: patch.txt
>
>
> Changes to MultithreadedConnectionManager and IdleConnectionTimeoutThread following the suggestions of Balazs SZÜCS.
> -------- Forwarded Message --------
> From: SZÜCS Balazs <Ba...@wave-solutions.com>
> Reply-To: HttpClient User Discussion
> <ht...@jakarta.apache.org>
> To: 'HttpClient User Discussion' <ht...@jakarta.apache.org>
> Subject: RE: MultithreadedConnectionManager pooling strategy
> Date: Mon, 15 May 2006 15:26:08 +0200
> Hello,
> I made two changes to the HttpClient code:
> 1) in the class ConnectionPool in the method getFreeConnection( ... ) I
> changed freeConnections.removeFirst() to freeConnections.removeLast(). Now
> the container for free connections behaves as a stack rather than a queue.
> 2) additionally I changed the IdleConnectionTimeoutThread, in the run()
> method I added connectionManager.deleteClosedConnections() so that the pool
> size is maintained correctly.
> What do you think?
> Balazs
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org