diff --git a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/GraphQLHttpService.java b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/GraphQLHttpService.java index a06aa401a2..3edc3f7842 100644 --- a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/GraphQLHttpService.java +++ b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/GraphQLHttpService.java @@ -129,7 +129,11 @@ public class GraphQLHttpService { // Create the HTTP server and a router object. httpServer = vertx.createHttpServer( - new HttpServerOptions().setHost(config.getHost()).setPort(config.getPort())); + new HttpServerOptions() + .setHost(config.getHost()) + .setPort(config.getPort()) + .setHandle100ContinueAutomatically(true) + .setCompressionSupported(true)); // Handle graphql http requests final Router router = Router.router(vertx); diff --git a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/JsonRpcHttpService.java b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/JsonRpcHttpService.java index e62044053b..0eafc55c16 100644 --- a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/JsonRpcHttpService.java +++ b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/JsonRpcHttpService.java @@ -340,7 +340,8 @@ public class JsonRpcHttpService { new HttpServerOptions() .setHost(config.getHost()) .setPort(config.getPort()) - .setHandle100ContinueAutomatically(true); + .setHandle100ContinueAutomatically(true) + .setCompressionSupported(true); applyTlsConfig(httpServerOptions); return httpServerOptions; diff --git a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/websocket/WebSocketService.java b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/websocket/WebSocketService.java index d5a1239837..a680493318 100644 --- a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/websocket/WebSocketService.java +++ b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/websocket/WebSocketService.java @@ -91,8 +91,10 @@ public class WebSocketService { new HttpServerOptions() .setHost(configuration.getHost()) .setPort(configuration.getPort()) - .setWebsocketSubProtocols("undefined")) - .websocketHandler(websocketHandler()) + .setHandle100ContinueAutomatically(true) + .setCompressionSupported(true) + .addWebSocketSubProtocol("undefined")) + .webSocketHandler(websocketHandler()) .requestHandler(httpHandler()) .listen(startHandler(resultFuture)); diff --git a/metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/MetricsHttpService.java b/metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/MetricsHttpService.java index dadd373909..82afd0b3c3 100644 --- a/metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/MetricsHttpService.java +++ b/metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/MetricsHttpService.java @@ -81,7 +81,11 @@ public class MetricsHttpService implements MetricsService { // Create the HTTP server and a router object. httpServer = vertx.createHttpServer( - new HttpServerOptions().setHost(config.getHost()).setPort(config.getPort())); + new HttpServerOptions() + .setHost(config.getHost()) + .setPort(config.getPort()) + .setHandle100ContinueAutomatically(true) + .setCompressionSupported(true)); final Router router = Router.router(vertx);