You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (Jira)" <ji...@apache.org> on 2020/08/11 10:13:00 UTC

[jira] [Resolved] (HTTPCLIENT-2107) PoolingHttpClientConnectionManager unsafe volatile field access

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-2107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCLIENT-2107.
-------------------------------------------
    Fix Version/s: 5.0.2
       Resolution: Fixed

> 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
>            Priority: Minor
>             Fix For: 5.0.2
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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