File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/com/uid2/optout/vertx Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 4444public class OptOutServiceVerticle extends AbstractVerticle {
4545 public static final String IDENTITY_HASH = "identity_hash" ;
4646 public static final String ADVERTISING_ID = "advertising_id" ;
47+ public static final long MAX_REQUEST_BODY_SIZE = 1 << 20 ; // 1MB
4748
4849 private static final Logger LOGGER = LoggerFactory .getLogger (OptOutServiceVerticle .class );
4950 private final HealthComponent healthComponent = HealthManager .instance .registerComponent ("http-server" );
@@ -114,7 +115,7 @@ public void start(Promise<Void> startPromise) {
114115 this .healthComponent .setHealthStatus (false , "still starting" );
115116
116117 try {
117- vertx .createHttpServer ()
118+ vertx .createHttpServer (new HttpServerOptions (). setMaxFormBufferedBytes (( int ) MAX_REQUEST_BODY_SIZE ) )
118119 .requestHandler (createRouter ())
119120 .listen (listenPort , result -> handleListenResult (startPromise , result ));
120121 } catch (Exception ex ) {
You can’t perform that action at this time.
0 commit comments