add common http settings

This commit is contained in:
kimchy 2010-05-18 01:35:35 +03:00
parent e696b4ca00
commit 9ebb95c6c0
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ public class NettyHttpServerTransport extends AbstractLifecycleComponent<HttpSer
@Inject public NettyHttpServerTransport(Settings settings, NetworkService networkService) {
super(settings);
this.networkService = networkService;
SizeValue maxContentLength = componentSettings.getAsSize("max_content_length", new SizeValue(100, SizeUnit.MB));
SizeValue maxContentLength = componentSettings.getAsSize("max_content_length", settings.getAsSize("http.max_content_length", new SizeValue(100, SizeUnit.MB)));
this.workerCount = componentSettings.getAsInt("worker_count", Runtime.getRuntime().availableProcessors());
this.port = componentSettings.get("port", settings.get("http.port", "9200-9300"));
this.bindHost = componentSettings.get("bind_host");