Author: markt Date: Fri Dec 5 13:34:32 2014 New Revision: 1643273 URL: http://svn.apache.org/r1643273 Log: Possible fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=57265
Modified: tomcat/tc8.0.x/trunk/ (props changed) tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml Propchange: tomcat/tc8.0.x/trunk/ ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Fri Dec 5 13:34:32 2014 @@ -1 +1 @@ -/tomcat/trunk:1636524,1637156,1637176,1637188,1637331,1637684,1637695,1638720-1638725,1639653,1640010,1640084,1640088,1640275,1640322,1640347,1640361,1640365,1640403,1640410,1640652,1640655-1640658,1640688,1640700-1640883,1640903,1640976,1640978,1641000,1641026,1641038-1641039,1641051-1641052,1641058,1641064,1641300,1641369,1641374,1641380,1641486,1641634,1641656-1641692,1641704,1641707-1641718,1641720-1641722,1641735,1641981,1642668,1642679,1642697,1642699,1643002,1643066,1643121,1643206,1643209-1643210,1643216,1643249 +/tomcat/trunk:1636524,1637156,1637176,1637188,1637331,1637684,1637695,1638720-1638725,1639653,1640010,1640084,1640088,1640275,1640322,1640347,1640361,1640365,1640403,1640410,1640652,1640655-1640658,1640688,1640700-1640883,1640903,1640976,1640978,1641000,1641026,1641038-1641039,1641051-1641052,1641058,1641064,1641300,1641369,1641374,1641380,1641486,1641634,1641656-1641692,1641704,1641707-1641718,1641720-1641722,1641735,1641981,1642668,1642679,1642697,1642699,1643002,1643066,1643121,1643206,1643209-1643210,1643216,1643249,1643270 Modified: tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java URL: http://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java?rev=1643273&r1=1643272&r2=1643273&view=diff ============================================================================== --- tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java (original) +++ tomcat/tc8.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Fri Dec 5 13:34:32 2014 @@ -1429,7 +1429,7 @@ public class NioEndpoint extends Abstrac private boolean cometNotify = false; private CountDownLatch readLatch = null; private CountDownLatch writeLatch = null; - private SendfileData sendfileData = null; + private volatile SendfileData sendfileData = null; private long writeTimeout = -1; } @@ -1634,11 +1634,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; } } Modified: tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml?rev=1643273&r1=1643272&r2=1643273&view=diff ============================================================================== --- tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml (original) +++ tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml Fri Dec 5 13:34:32 2014 @@ -118,6 +118,10 @@ <bug>57234</bug>: Make SSL protocol filtering to remove insecure protocols case insensitive. (markt) </fix> + <fix> + <bug>57265</bug>: Fix some potential concurrency issues with sendFile + and the NIO connector. (markt) + </fix> </changelog> </subsection> <subsection name="Jasper"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org