Add a limit of the number of pipe-lined requests over an HTTP/1 client connection

This commit is contained in:
Julien Viet
2016-05-31 09:38:01 +02:00
parent aa269df9be
commit 10dab4128d
11 changed files with 181 additions and 64 deletions

View File

@@ -285,7 +285,7 @@ public class HTTP2Examples {
public void useMaxStreams(Vertx vertx) {
HttpClientOptions clientOptions = new HttpClientOptions().
setHttp2MaxStreams(10).
setHttp2MultiplexingLimit(10).
setHttp2MaxPoolSize(3);
// Uses up to 3 connections and up to 10 streams per connection