Enable core to default networking to Netty 4

This commit enables core to set the default transport and HTTP
implementation to use transport-netty4.

Relates elastic/elasticsearch#2999

Original commit: elastic/x-pack-elasticsearch@cb0efa29ab
This commit is contained in:
Jason Tedor 2016-08-02 12:19:34 -04:00 committed by GitHub
parent 287f4da0b9
commit b498fd32a2
1 changed files with 4 additions and 1 deletions

View File

@ -333,7 +333,10 @@ public class Security implements ActionPlugin, IngestPlugin {
public Settings additionalSettings() { public Settings additionalSettings() {
if (enabled == false) { if (enabled == false) {
return Settings.EMPTY; return Settings.builder()
.put(NetworkModule.HTTP_TYPE_KEY, "netty3")
.put(NetworkModule.TRANSPORT_TYPE_KEY, "netty3")
.build();
} }
return additionalSettings(settings); return additionalSettings(settings);