You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Carter Kozak (Jira)" <ji...@apache.org> on 2020/08/10 15:35:00 UTC
[jira] [Created] (HTTPCLIENT-2107)
PoolingHttpClientConnectionManager unsafe volatile field access
Carter Kozak created HTTPCLIENT-2107:
----------------------------------------
Summary: PoolingHttpClientConnectionManager unsafe volatile field access
Key: HTTPCLIENT-2107
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2107
Project: HttpComponents HttpClient
Issue Type: Bug
Affects Versions: 5.0.1
Reporter: Carter Kozak
PoolingHttpClientConnectionManager assumes subsequent volatile reads on validateAfterInactivity and defaultSocketConfig result in the same value, which can result n incorrect assumptions or even null pointer exceptions.
We should read a snapshot to a local variable, and reuse the local snapshot.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org