diff options
author | Martin Polden <mpolden@mpolden.no> | 2023-04-24 15:41:30 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2023-04-24 15:41:30 +0200 |
commit | 49411c18d5481021c529922b2ef595da9f87cedf (patch) | |
tree | 6422cfe781ebbddf3772c637163f9bcdcb955e8e /client | |
parent | 52da0627df33b219e9e8c89e45195c2867ef3202 (diff) |
Apply SETTINGS_MAX_CONCURRENT_STREAMS globally
I.e. per client instead of per connection.
Diffstat (limited to 'client')
-rw-r--r-- | client/go/internal/util/http.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/go/internal/util/http.go b/client/go/internal/util/http.go index 8a67b24dffb..30874153510 100644 --- a/client/go/internal/util/http.go +++ b/client/go/internal/util/http.go @@ -81,8 +81,9 @@ func ForceHTTP2(client HTTPClient, certificates []tls.Certificate, caCertificate // https://github.com/golang/go/issues/16582 // https://github.com/golang/go/issues/22091 c.client.Transport = &http2.Transport{ - AllowHTTP: true, - DialTLSContext: dialFunc, + AllowHTTP: true, + DialTLSContext: dialFunc, + StrictMaxConcurrentStreams: true, } ConfigureTLS(client, certificates, caCertificate, trustAll) } |