Merge remote-tracking branch 'origin/jetty-9.2.x' into jetty-9.3.x

This commit is contained in:
Greg Wilkins 2016-09-21 14:00:49 +10:00
commit 4fca2bf8af
1 changed files with 6 additions and 2 deletions

View File

@ -870,8 +870,12 @@ public class HttpOutput extends ServletOutputStream implements Runnable
public void recycle()
{
_interceptor = _channel;
if (BufferUtil.hasContent(_aggregate))
BufferUtil.clear(_aggregate);
HttpConfiguration config = _channel.getHttpConfiguration();
_bufferSize = config.getOutputBufferSize();
_commitSize = config.getOutputAggregationSize();
if (_commitSize > _bufferSize)
_commitSize = _bufferSize;
releaseBuffer();
_written = 0;
reopen();
}