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; }