From 534fb8c42759bda727ba699cdd69701e00e0aad8 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Wed, 21 Sep 2016 12:37:58 +1000 Subject: [PATCH] Reset Response buffer size #940 --- .../main/java/org/eclipse/jetty/server/HttpOutput.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java index 47346cb1bd1..6062bf54083 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java @@ -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(); }