mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-04 04:49:12 +00:00
jetty-9 added commit test from tbecker. Fixed issue in HttpConnection, started commenting other tests that need some changes
This commit is contained in:
parent
9759c38fc0
commit
ed76d97049
@ -617,7 +617,11 @@ public class HttpConnection extends AbstractConnection
|
||||
if (_generator.isCommitted())
|
||||
throw new IllegalStateException("committed");
|
||||
if (BufferUtil.hasContent(_responseBuffer))
|
||||
throw new IllegalStateException("!empty");
|
||||
{
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("discarding uncommitted response {}",BufferUtil.toDetailString(_responseBuffer));
|
||||
BufferUtil.clear(_responseBuffer);
|
||||
}
|
||||
if (_generator.isComplete())
|
||||
throw new EofException();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user