diff --git a/solr/test-framework/src/java/org/apache/solr/embedded/JettySolrRunner.java b/solr/test-framework/src/java/org/apache/solr/embedded/JettySolrRunner.java index 27d3052e74a..f39a696ab11 100644 --- a/solr/test-framework/src/java/org/apache/solr/embedded/JettySolrRunner.java +++ b/solr/test-framework/src/java/org/apache/solr/embedded/JettySolrRunner.java @@ -458,6 +458,10 @@ public void lifeCycleFailure(LifeCycle arg0, Throwable arg1) { gzipHandler.setMinGzipSize(23); // https://github.com/eclipse/jetty.project/issues/4191 gzipHandler.setIncludedMethods("GET"); + int gzipInflateSize = Integer.getInteger("jetty.gzip.inflateBufferSize", 0); + if (gzipInflateSize > 0) { + gzipHandler.setInflateBufferSize(gzipInflateSize); + } server.setHandler(gzipHandler); }