Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
public class OptOutServiceVerticle extends AbstractVerticle {
public static final String IDENTITY_HASH = "identity_hash";
public static final String ADVERTISING_ID = "advertising_id";
public static final long MAX_REQUEST_BODY_SIZE = 1 << 20; // 1MB

private static final Logger LOGGER = LoggerFactory.getLogger(OptOutServiceVerticle.class);
private final HealthComponent healthComponent = HealthManager.instance.registerComponent("http-server");
Expand Down Expand Up @@ -114,7 +115,7 @@ public void start(Promise<Void> startPromise) {
this.healthComponent.setHealthStatus(false, "still starting");

try {
vertx.createHttpServer()
vertx.createHttpServer(new HttpServerOptions().setMaxFormBufferedBytes((int) MAX_REQUEST_BODY_SIZE))
.requestHandler(createRouter())
.listen(listenPort, result -> handleListenResult(startPromise, result));
} catch (Exception ex) {
Expand Down