don't allow the server to create bidirectional streams

This commit is contained in:
Marten Seemann 2019-09-10 18:00:24 +07:00
parent 9e6bff0b98
commit c41b2e3cdd

View file

@ -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