Skip to content

Commit

Permalink
Merge pull request #2145 from lucas-clemente/http3-no-server-bidi-str…
Browse files Browse the repository at this point in the history
…eams

don't allow a HTTP/3 server to create bidirectional streams
  • Loading branch information
marten-seemann committed Sep 27, 2019
2 parents ed9f2ad + c41b2e3 commit 03ab563
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion http3/client.go
Expand Up @@ -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

Expand Down

0 comments on commit 03ab563

Please sign in to comment.