[
https://issues.apache.org/jira/browse/HTTPCLIENT-636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514455
]
Roland Weber commented on HTTPCLIENT-636:
-----------------------------------------
Replacing the shared cleanup thread with a per-pool thread raises some tricky
issues.
The first attempt failed because the background thread prevents GC of the
connection manager:
the thread keeps a reference to the ConnectionPool, which is a nested class of
the TSCCM.
Will need to think about this a little more. Suggestions are welcome.
cheers,
Roland
> Revise internal data structures of ThreadSafeClientConnManager
> --------------------------------------------------------------
>
> Key: HTTPCLIENT-636
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-636
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpConn
> Reporter: Roland Weber
> Assignee: Roland Weber
> Fix For: 4.0 Alpha 2
>
>
> ThreadSafeClientConnManager internal data structures can be improved:
> - keep track of issued connections with weak references
> - use class derived from WeakReference instead of a lookup table for
> callbacks from ReferenceThread
> (or drop ReferenceThread in favor of occasionally polling the issued
> connections for leaks)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]