[
https://issues.apache.org/jira/browse/HTTPCORE-565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16731972#comment-16731972
]
Michael Osipov edited comment on HTTPCORE-565 at 1/2/19 11:31 AM:
------------------------------------------------------------------
[~olegk], as far as I can see {{AbstractConnPool}} has been superseded with
{{StrictConnPool}} and {{LaxConnPool}} in 5.0? {{LaxConnPool}} does not use a
lock, so the {{PoolStats}} seem to be fine and {{StrictConnPool}} uses size
instead of the entire collection which should be safe also. As far as I can see
nothing needs to be fixed in 5.0. Am I wrong?
was (Author: michael-o):
[~olegk], as far as I can see {{AbstractConnPool}} has been superseded with
{{StrictConnPool}} and {{LaxConnPool}} in 5.0?
> org.apache.http.pool.AbstractConnPool#toString() throws
> ConcurrentModificationException
> ---------------------------------------------------------------------------------------
>
> Key: HTTPCORE-565
> URL: https://issues.apache.org/jira/browse/HTTPCORE-565
> Project: HttpComponents HttpCore
> Issue Type: Bug
> Components: HttpCore
> Affects Versions: 4.4.10
> Reporter: qxo
> Assignee: Michael Osipov
> Priority: Major
> Fix For: 4.4.11, 5.0-beta7
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {code}
> java.util.ConcurrentModificationException
> at
> java.base/java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:970)
> at java.base/java.util.LinkedList$ListItr.next(LinkedList.java:892)
> at
> java.base/java.util.AbstractCollection.toString(AbstractCollection.java:472)
> at java.base/java.lang.String.valueOf(String.java:2951)
> at java.base/java.lang.StringBuilder.append(StringBuilder.java:168)
> at
> org.apache.http.pool.AbstractConnPool.toString(AbstractConnPool.java:675)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]