jetty-9 added commit test from tbecker. Fixed issue in HttpConnection, started commenting other tests that need some changes

This commit is contained in:
Greg Wilkins 2012-08-16 09:02:34 +10:00
parent 9759c38fc0
commit ed76d97049

View File

@ -617,7 +617,11 @@ public class HttpConnection extends AbstractConnection
if (_generator.isCommitted()) if (_generator.isCommitted())
throw new IllegalStateException("committed"); throw new IllegalStateException("committed");
if (BufferUtil.hasContent(_responseBuffer)) 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()) if (_generator.isComplete())
throw new EofException(); throw new EofException();