Reset Response buffer size #940

This commit is contained in:
Greg Wilkins 2016-09-21 12:37:58 +10:00
parent e0c433c831
commit 534fb8c427
1 changed files with 8 additions and 0 deletions

View File

@ -114,6 +114,14 @@ public class HttpOutput extends ServletOutputStream implements Runnable
public void reset()
{
HttpConfiguration config = _channel.getHttpConfiguration();
_bufferSize = config.getOutputBufferSize();
_commitSize = config.getOutputAggregationSize();
if (_commitSize>_bufferSize)
{
LOG.warn("OutputAggregationSize {} exceeds bufferSize {}",_commitSize,_bufferSize);
_commitSize=_bufferSize;
}
_written = 0;
reopen();
}