Author: markt Date: Fri Dec 5 13:30:27 2014 New Revision: 1643270 URL: http://svn.apache.org/viewvc?rev=1643270&view=rev Log: Possible fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=57265
Modified: tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Modified: tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java URL: http://svn.apache.org/r1643269 ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Fri Dec 5 13:30:27 2014 @@ -1304,7 +1304,7 @@ public class NioEndpoint extends Abstrac private boolean callBackNotify = false; private CountDownLatch readLatch = null; private CountDownLatch writeLatch = null; - private SendfileData sendfileData = null; + private volatile SendfileData sendfileData = null; private long writeTimeout = -1; public NioSocketWrapper(NioChannel channel, NioEndpoint endpoint) { @@ -1817,11 +1817,11 @@ public class NioEndpoint extends Abstrac */ public static class SendfileData { // File - public String fileName; - public FileChannel fchannel; - public long pos; - public long length; + public volatile String fileName; + public volatile FileChannel fchannel; + public volatile long pos; + public volatile long length; // KeepAlive flag - public boolean keepAlive; + public volatile boolean keepAlive; } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org