Issue #2549 ConsumeAll forced EOF or EarlyEOF
Cleanup after review Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
parent
b93cc5abb6
commit
c69ab6bd56
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue