commit | bbb7765ac8296f5983442781d126a0fbdaec9aa3 | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Wed Jan 08 20:02:26 2014 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Wed Jan 08 20:02:26 2014 +0000 |
tree | f1ee28cf0c84ea926e4a22d42ff8346cc856df9f | |
parent | c41f90fecd328c61011c19530ff2ed2f3321078d [diff] |
FELIX-4377 Readd configuration of request and respoonse header buffer size Applying patch by Dominique Pfister (thanks alot) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1556621 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/http/jetty/src/main/java/org/apache/felix/http/jetty/internal/JettyConfig.java b/http/jetty/src/main/java/org/apache/felix/http/jetty/internal/JettyConfig.java index 9a84ded..c8c084a 100644 --- a/http/jetty/src/main/java/org/apache/felix/http/jetty/internal/JettyConfig.java +++ b/http/jetty/src/main/java/org/apache/felix/http/jetty/internal/JettyConfig.java
@@ -185,6 +185,11 @@ return getStringArrayProperty(FELIX_JETTY_EXCLUDED_SUITES, null); } + public int getHeaderSize() + { + return getIntProperty(FELIX_JETTY_HEADER_BUFFER_SIZE, 16 * 1024); + } + public String getHost() { return getProperty(FELIX_HOST, null);
diff --git a/http/jetty/src/main/java/org/apache/felix/http/jetty/internal/JettyService.java b/http/jetty/src/main/java/org/apache/felix/http/jetty/internal/JettyService.java index 9eb56fd..448804b 100644 --- a/http/jetty/src/main/java/org/apache/felix/http/jetty/internal/JettyService.java +++ b/http/jetty/src/main/java/org/apache/felix/http/jetty/internal/JettyService.java
@@ -384,7 +384,9 @@ private void configureConnector(final Connector connector, int port) { connector.setMaxIdleTime(this.config.getHttpTimeout()); + connector.setRequestHeaderSize(this.config.getHeaderSize()); connector.setRequestBufferSize(this.config.getRequestBufferSize()); + connector.setResponseHeaderSize(this.config.getHeaderSize()); connector.setResponseBufferSize(this.config.getResponseBufferSize()); connector.setPort(port); connector.setHost(this.config.getHost());