mirror of
https://github.com/jlengrand/vert.x.git
synced 2026-03-31 15:54:36 +00:00
Http2 default option tuning and pool usage tweaks
This commit is contained in:
@@ -284,7 +284,9 @@ public class HTTP2Examples {
|
||||
|
||||
public void useMaxStreams(Vertx vertx) {
|
||||
|
||||
HttpClientOptions clientOptions = new HttpClientOptions().setMaxStreams(10).setMaxPoolSize(3);
|
||||
HttpClientOptions clientOptions = new HttpClientOptions().
|
||||
setHttp2MaxStreams(10).
|
||||
setHttp2MaxPoolSize(3);
|
||||
|
||||
// Uses up to 3 connections and up to 10 streams per connection
|
||||
HttpClient client = vertx.createHttpClient(clientOptions);
|
||||
|
||||
Reference in New Issue
Block a user