mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-03 20:39:18 +00:00
Merge branch 'jetty-9.3.x'
This commit is contained in:
commit
eba2bffefe
@ -761,7 +761,7 @@ public class HttpOutput extends ServletOutputStream implements Runnable
|
|||||||
}
|
}
|
||||||
if (_channel.isCommitted())
|
if (_channel.isCommitted())
|
||||||
{
|
{
|
||||||
callback.failed(new IOException("committed"));
|
callback.failed(new IOException("cannot sendContent(), output already committed"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1091,7 +1091,7 @@ public class Response implements HttpServletResponse
|
|||||||
public void setBufferSize(int size)
|
public void setBufferSize(int size)
|
||||||
{
|
{
|
||||||
if (isCommitted() || getContentCount() > 0)
|
if (isCommitted() || getContentCount() > 0)
|
||||||
throw new IllegalStateException("Committed or content written");
|
throw new IllegalStateException("cannot set buffer size on committed response");
|
||||||
if (size <= 0)
|
if (size <= 0)
|
||||||
size = __MIN_BUFFER_SIZE;
|
size = __MIN_BUFFER_SIZE;
|
||||||
_out.setBufferSize(size);
|
_out.setBufferSize(size);
|
||||||
@ -1175,7 +1175,7 @@ public class Response implements HttpServletResponse
|
|||||||
public void resetBuffer()
|
public void resetBuffer()
|
||||||
{
|
{
|
||||||
if (isCommitted())
|
if (isCommitted())
|
||||||
throw new IllegalStateException("Committed");
|
throw new IllegalStateException("cannot reset buffer on committed response");
|
||||||
|
|
||||||
_out.resetBuffer();
|
_out.resetBuffer();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user