hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r740073 - in /httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl: SocketHttpClientConnection.java SocketHttpServerConnection.java
Date Mon, 02 Feb 2009 18:46:20 GMT
Author: olegk
Date: Mon Feb  2 18:46:19 2009
New Revision: 740073

URL: http://svn.apache.org/viewvc?rev=740073&view=rev
Log:
HTTPCLIENT-821: fixed potential concurrency issue

Modified:
    httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/SocketHttpClientConnection.java
    httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/SocketHttpServerConnection.java

Modified: httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/SocketHttpClientConnection.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/SocketHttpClientConnection.java?rev=740073&r1=740072&r2=740073&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/SocketHttpClientConnection.java
(original)
+++ httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/SocketHttpClientConnection.java
Mon Feb  2 18:46:19 2009
@@ -60,7 +60,7 @@
         extends AbstractHttpClientConnection implements HttpInetConnection {
 
     private volatile boolean open;
-    private Socket socket = null;
+    private volatile Socket socket = null;
     
     public SocketHttpClientConnection() {
         super();

Modified: httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/SocketHttpServerConnection.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/SocketHttpServerConnection.java?rev=740073&r1=740072&r2=740073&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/SocketHttpServerConnection.java
(original)
+++ httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/SocketHttpServerConnection.java
Mon Feb  2 18:46:19 2009
@@ -59,7 +59,7 @@
         AbstractHttpServerConnection implements HttpInetConnection {
 
     private volatile boolean open;
-    private Socket socket = null;
+    private volatile Socket socket = null;
     
     public SocketHttpServerConnection() {
         super();



Mime
View raw message