From 878d41ba91887f80a957b264c407857c19211dea Mon Sep 17 00:00:00 2001 From: fhanik Date: Thu, 22 Mar 2007 22:05:22 +0000 Subject: [PATCH] Catch io exceptions and hide them unless debug is enabled git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@521493 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/tomcat/util/net/NioEndpoint.java | 6 +++++- webapps/docs/changelog.xml | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java b/java/org/apache/tomcat/util/net/NioEndpoint.java index c527bf323..474d550ef 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -1476,9 +1476,12 @@ public class NioEndpoint { else cancelledKey(sk,SocketStatus.STOP,false); } + }catch ( IOException x ) { + if ( log.isDebugEnabled() ) log.warn("Unable to complete send file", x); + cancelledKey(sk,SocketStatus.ERROR,false); }catch ( Throwable t ) { log.error("",t); - cancelledKey(sk, SocketStatus.ERROR); + cancelledKey(sk, SocketStatus.ERROR, false); } } @@ -1549,6 +1552,7 @@ public class NioEndpoint { error = false; fairness = 0; lastRegistered = 0; + sendfileData = null; } public void reset() { diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 12c95b5aa..9bd7fd777 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -18,6 +18,9 @@ + Added SENDFILE support for the NIO connector. (fhanik) + + Added support for shared thread pools by adding in the <Executor> element as a nested element to the <Service> element. (fhanik) -- 2.11.0