Merge pull request #3017 from lucas-clemente/h3-reenable-key-updates

reenable key updates for HTTP/3
This commit is contained in:
Marten Seemann
2021-01-23 19:35:58 +08:00
committed by GitHub

View File

@@ -7,7 +7,6 @@ import (
"errors"
"fmt"
"io"
"math"
"net"
"net/http"
"runtime"
@@ -24,13 +23,6 @@ import (
"github.com/marten-seemann/qpack"
)
func init() {
// Chrome compatibility mode:
// Chrome 87 doesn't support key updates (support was added in Chrome 88).
// Don't initiate key updates to avoid breaking large downloads.
handshake.KeyUpdateInterval = math.MaxUint64
}
// allows mocking of quic.Listen and quic.ListenAddr
var (
quicListen = quic.ListenEarly