HttpConnection.shutdown() not always thread-safe
------------------------------------------------

                 Key: HTTPCLIENT-821
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-821
             Project: HttpComponents HttpClient
          Issue Type: Bug
            Reporter: Sebb
             Fix For: 4.0 Final


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

Reply via email to