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

Oleg Kalnichevski resolved HTTPCORE-182.
----------------------------------------

    Resolution: Fixed

Made variables volatile. This should fix the issue. Please review.

Oleg

> HttpConnection.shutdown() not always thread-safe
> ------------------------------------------------
>
>                 Key: HTTPCORE-182
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-182
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>            Reporter: Sebb
>             Fix For: 4.0-beta4
>
>
> The documentation says that the HttpConnection is generally not thread-safe, 
> but that the shutdown() method is thread-safe.
> However this is not the case at present for the methods:
> org.apache.http.impl.SocketHttpClientConnection.shutdown()
> org.apache.http.impl.SocketHttpServerConnection.shutdown() 
> It reads the socket from the instance variable "this.socket" which is not 
> synchronised, final or volatile.

-- 
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: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to