From d091003cfc0f30e089cd38cd2b10e47a69c2371a Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Mon, 18 Jul 2011 14:30:04 +1000 Subject: [PATCH] return EOF rather than throw EoFException --- .../main/java/org/eclipse/jetty/io/nio/ChannelEndPoint.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/ChannelEndPoint.java b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/ChannelEndPoint.java index 04a11f07c4d..8720aeaef48 100644 --- a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/ChannelEndPoint.java +++ b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/ChannelEndPoint.java @@ -185,15 +185,17 @@ public class ChannelEndPoint implements EndPoint Log.ignore(xx); } - if (len>=0) + if (len>0) throw x; + Log.ignore(x); + len=-1; } } else { throw new IOException("Not Implemented"); } - + return len; }