forked from quic-go/quic-go
disable key updates when using HTTP/3 to avoid breaking Chrome 87
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
"math"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"runtime"
|
"runtime"
|
||||||
@@ -22,6 +23,13 @@ import (
|
|||||||
"github.com/marten-seemann/qpack"
|
"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
|
// allows mocking of quic.Listen and quic.ListenAddr
|
||||||
var (
|
var (
|
||||||
quicListen = quic.ListenEarly
|
quicListen = quic.ListenEarly
|
||||||
|
|||||||
Reference in New Issue
Block a user