diff --git a/http3/client.go b/http3/client.go index 68f9f92b563..49b8387710b 100644 --- a/http3/client.go +++ b/http3/client.go @@ -19,7 +19,10 @@ import ( const defaultUserAgent = "quic-go HTTP/3" const defaultMaxResponseHeaderBytes = 10 * 1 << 20 // 10 MB -var defaultQuicConfig = &quic.Config{KeepAlive: true} +var defaultQuicConfig = &quic.Config{ + MaxIncomingStreams: -1, // don't allow the server to create bidirectional streams + KeepAlive: true, +} var dialAddr = quic.DialAddr