Merge branch 'jetty-9.3.x'

This commit is contained in:
Joakim Erdfelt 2016-03-02 09:08:30 -07:00
commit eba2bffefe
2 changed files with 3 additions and 3 deletions

View File

@ -761,7 +761,7 @@ public class HttpOutput extends ServletOutputStream implements Runnable
}
if (_channel.isCommitted())
{
callback.failed(new IOException("committed"));
callback.failed(new IOException("cannot sendContent(), output already committed"));
return;
}

View File

@ -1091,7 +1091,7 @@ public class Response implements HttpServletResponse
public void setBufferSize(int size)
{
if (isCommitted() || getContentCount() > 0)
throw new IllegalStateException("Committed or content written");
throw new IllegalStateException("cannot set buffer size on committed response");
if (size <= 0)
size = __MIN_BUFFER_SIZE;
_out.setBufferSize(size);
@ -1175,7 +1175,7 @@ public class Response implements HttpServletResponse
public void resetBuffer()
{
if (isCommitted())
throw new IllegalStateException("Committed");
throw new IllegalStateException("cannot reset buffer on committed response");
_out.resetBuffer();
}