From 6c1738bf2045ed514657225a53311c5bf5bd160b Mon Sep 17 00:00:00 2001 From: fhanik Date: Tue, 1 Mar 2011 18:24:03 +0000 Subject: [PATCH] propagate all exceptions through IOExceptions git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1075964 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/tomcat/util/net/SecureNioChannel.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/net/SecureNioChannel.java b/java/org/apache/tomcat/util/net/SecureNioChannel.java index e7f26e93b..c3a9eac7d 100644 --- a/java/org/apache/tomcat/util/net/SecureNioChannel.java +++ b/java/org/apache/tomcat/util/net/SecureNioChannel.java @@ -253,11 +253,15 @@ public class SecureNioChannel extends NioChannel { } } } + } catch (IOException x) { + throw x; + } catch (Exception cx) { + IOException x = new IOException(cx); + throw x; } finally { if (key!=null) try {key.cancel();} catch (Exception ignore) {} if (selector!=null) try {selector.close();} catch (Exception ignore) {} } - } -- 2.11.0