From bf6de11cd163cc6671540bf05281b6f5b89c02dd Mon Sep 17 00:00:00 2001 From: hitesh Date: Thu, 16 Nov 2023 12:17:26 -0800 Subject: [PATCH] Added gzip hanlding in JettySolrRunner --- .../src/java/org/apache/solr/embedded/JettySolrRunner.java | 4 ++++ 1 file changed, 4 insertions(+) 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); }