logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1582195 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/TCPSocketServer.java
Date Thu, 27 Mar 2014 05:41:44 GMT
Author: ggregory
Date: Thu Mar 27 05:41:44 2014
New Revision: 1582195

URL: http://svn.apache.org/r1582195
Log:
Make org.apache.logging.log4j.core.net.TCPSocketServer.SocketHandler.shutdown volatile.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/TCPSocketServer.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/TCPSocketServer.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/TCPSocketServer.java?rev=1582195&r1=1582194&r2=1582195&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/TCPSocketServer.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/TCPSocketServer.java
Thu Mar 27 05:41:44 2014
@@ -45,7 +45,7 @@ public class TCPSocketServer extends Abs
 
         private final InputStream inputStream;
 
-        private boolean shutdown = false;
+        private volatile boolean shutdown = false;
 
         public SocketHandler(final Socket socket, LogEventInput logEventInput) throws IOException
{
             this.inputStream = new ObjectInputStream(socket.getInputStream());



Mime
View raw message