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.
This commit is contained in:
Simone Bordet 2016-09-26 11:48:33 +02:00
parent a1a132a601
commit ad00e19328
1 changed files with 2 additions and 2 deletions

View File

@ -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