You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2017/01/20 17:30:47 UTC
svn commit: r1779654 -
/tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
Author: markt
Date: Fri Jan 20 17:30:46 2017
New Revision: 1779654
URL: http://svn.apache.org/viewvc?rev=1779654&view=rev
Log:
Code clean-up
Remove unnecessary check. The DefaultServlet checks this already.
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/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java?rev=1779654&r1=1779653&r2=1779654&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Fri Jan 20 17:30:46 2017
@@ -784,9 +784,6 @@ public class NioEndpoint extends Abstrac
if (sd.fchannel == null) {
// Setup the file channel
File f = new File(sd.fileName);
- if (!f.exists()) {
- return SendfileState.ERROR;
- }
@SuppressWarnings("resource") // Closed when channel is closed
FileInputStream fis = new FileInputStream(f);
sd.fchannel = fis.getChannel();
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org