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:
parent
287f4da0b9
commit
b498fd32a2
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue