From ad00e19328a1ee70fffce63203ffc5f9b0534d92 Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Mon, 26 Sep 2016 11:48:33 +0200 Subject: [PATCH] Issue #960 - Async I/O spin when reading early EOF. Now testing the return value of onEarlyEOF() and calling the application when the value is true. This means that the application can now consume the early EOF and the spin does not happen. --- .../java/org/eclipse/jetty/server/HttpChannelOverHttp.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelOverHttp.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelOverHttp.java index c5b348e60cf..6668678874c 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelOverHttp.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelOverHttp.java @@ -222,8 +222,8 @@ public class HttpChannelOverHttp extends HttpChannel implements HttpParser.Reque // If we have no request yet, just close if (_metadata.getMethod() == null) _httpConnection.close(); - else - onEarlyEOF(); + else if (onEarlyEOF()) + handle(); } @Override