hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r740496 - /httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionRequestImpl.java
Date Tue, 03 Feb 2009 22:44:37 GMT
Author: olegk
Date: Tue Feb  3 22:44:36 2009
New Revision: 740496

URL: http://svn.apache.org/viewvc?rev=740496&view=rev
Log:
Made all non-final instance variables volatile

Modified:
    httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionRequestImpl.java

Modified: httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionRequestImpl.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionRequestImpl.java?rev=740496&r1=740495&r2=740496&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionRequestImpl.java
(original)
+++ httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/SessionRequestImpl.java
Tue Feb  3 22:44:36 2009
@@ -57,9 +57,9 @@
     private final Object attachment;
     private final SessionRequestCallback callback;
     
-    private int connectTimeout;
-    private IOSession session = null;
-    private IOException exception = null;
+    private volatile int connectTimeout;
+    private volatile IOSession session = null;
+    private volatile IOException exception = null;
     
     public SessionRequestImpl(
             final SocketAddress remoteAddress,



Mime
View raw message