You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2009/02/02 21:59:59 UTC

[jira] Closed: (HTTPCORE-182) HttpConnection.shutdown() not always thread-safe

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

Sebb closed HTTPCORE-182.
-------------------------


OK, that should fix it.

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