From 3fd3adef4c560bbee972389b1915e07572766fbc Mon Sep 17 00:00:00 2001 From: Daniel Mitterdorfer Date: Wed, 13 Apr 2016 10:39:49 +0200 Subject: [PATCH] Limit request size on HTTP level With this commit we limit the size of all in-flight requests on HTTP level. The size is guarded by the same circuit breaker that is also used on transport level. Similarly, the size that is used is HTTP content length. Relates elastic/elasticsearchelastic/elasticsearch#16011 Original commit: elastic/x-pack-elasticsearch@318b7a4a8ad53efc0a4e6e56af4c334d045dd9a3 --- .../transport/netty/ShieldNettyHttpServerTransport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch/x-pack/shield/src/main/java/org/elasticsearch/shield/transport/netty/ShieldNettyHttpServerTransport.java b/elasticsearch/x-pack/shield/src/main/java/org/elasticsearch/shield/transport/netty/ShieldNettyHttpServerTransport.java index d4a049a3228..79d1e5f2f4b 100644 --- a/elasticsearch/x-pack/shield/src/main/java/org/elasticsearch/shield/transport/netty/ShieldNettyHttpServerTransport.java +++ b/elasticsearch/x-pack/shield/src/main/java/org/elasticsearch/shield/transport/netty/ShieldNettyHttpServerTransport.java @@ -50,8 +50,8 @@ public class ShieldNettyHttpServerTransport extends NettyHttpServerTransport { private final boolean ssl; @Inject - public ShieldNettyHttpServerTransport(Settings settings, NetworkService networkService, BigArrays bigArrays, - IPFilter ipFilter, ServerSSLService sslService, ThreadPool threadPool) { + public ShieldNettyHttpServerTransport(Settings settings, NetworkService networkService, BigArrays bigArrays, IPFilter ipFilter, + ServerSSLService sslService, ThreadPool threadPool) { super(settings, networkService, bigArrays, threadPool); this.ipFilter = ipFilter; this.ssl = SSL_SETTING.get(settings);