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:
parent
a1a132a601
commit
ad00e19328
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue