mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-04 12:59:30 +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())
|
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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user