diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConnection.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConnection.java index 30c128b2a5d..7f00e37ce63 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConnection.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpConnection.java @@ -226,7 +226,7 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http filled = getEndPoint().fill(_requestBuffer); if (filled==0) // Do a retry on fill 0 (optimization for SSL connections) filled = getEndPoint().fill(_requestBuffer); - + // tell parser if (filled < 0) _parser.atEOF(); @@ -476,12 +476,9 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http { if (status<0) { - EndPoint ep = getEndPoint(); - while (ep.getTransport() instanceof EndPoint) - ep=(EndPoint)ep.getTransport(); - ep.close(); + getEndPoint().close(); _parser.atEOF(); - LOG.debug("badMessage -1 close of {}",getEndPoint()); + LOG.info("Bad message close of "+getEndPoint()); completed(); } else