[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-2107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17175435#comment-17175435
 ] 

ASF subversion and git services commented on HTTPCLIENT-2107:
-------------------------------------------------------------

Commit 4f47c4abc095f469584e05819420a3b2d506186e in httpcomponents-client's 
branch refs/heads/master from Carter Kozak
[ https://gitbox.apache.org/repos/asf?p=httpcomponents-client.git;h=4f47c4a ]

HTTPCLIENT-2107: Threadsafe PoolingHttpClientConnectionManager field volatile 
access


> 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
>          Time Spent: 10m
>  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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to