Issue #2549 ConsumeAll forced EOF or EarlyEOF

Cleanup after review

Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
Greg Wilkins 2018-05-18 16:39:44 +10:00
parent b93cc5abb6
commit c69ab6bd56
1 changed files with 8 additions and 8 deletions

View File

@ -679,17 +679,17 @@ public class HttpInput extends ServletInputStream implements Runnable
skip(item, item.remaining());
}
return isFinished() && !isError();
}
catch (IOException e)
{
LOG.debug(e);
if (isFinished())
return !isError();
_state = EARLY_EOF;
return false;
}
finally
catch (Throwable e)
{
if (!EOFState.class.isInstance(_state))
_state = EARLY_EOF;
LOG.debug(e);
_state = new ErrorState(e);
return false;
}
}
}