Skip to content

Commit

Permalink
Max concurrent streams (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed May 31, 2024
1 parent 01dab68 commit ff15028
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import io.opentelemetry.api.OpenTelemetry;
import io.vertx.core.AsyncResult;
import io.vertx.core.Vertx;
import io.vertx.core.http.Http2Settings;
import io.vertx.core.http.HttpServer;
import io.vertx.core.http.HttpServerOptions;
import java.util.*;
Expand Down Expand Up @@ -46,7 +47,8 @@ public class RestateHttpEndpointBuilder {
private OpenTelemetry openTelemetry = OpenTelemetry.noop();
private HttpServerOptions options =
new HttpServerOptions()
.setPort(Optional.ofNullable(System.getenv("PORT")).map(Integer::parseInt).orElse(9080));
.setPort(Optional.ofNullable(System.getenv("PORT")).map(Integer::parseInt).orElse(9080))
.setInitialSettings(new Http2Settings().setMaxConcurrentStreams(Integer.MAX_VALUE));

private RestateHttpEndpointBuilder(Vertx vertx) {
this.vertx = vertx;
Expand Down

0 comments on commit ff15028

Please sign in to comment.