fix: build error after sync

Signed-off-by: Gaukas Wang <i@gaukas.wang>
This commit is contained in:
Gaukas Wang 2024-04-23 23:20:14 -06:00
parent b66e1ed5f5
commit 05c12945b8
No known key found for this signature in database
GPG key ID: 6F0DF52D710D8189
8 changed files with 71 additions and 126 deletions

View file

@ -27,11 +27,7 @@ var newUClientConnection = func(
tracer *logging.ConnectionTracer,
tracingID uint64,
logger utils.Logger,
v protocol.VersionNumber,
// chs *tls.ClientHelloSpec,
// initPktNbrLen PacketNumberLen,
// qfs QUICFrames,
// udpDatagramMinSize int,
v protocol.Version,
uSpec *QUICSpec, // [UQUIC]
) quicConn {
s := &connection{
@ -130,7 +126,7 @@ var newUClientConnection = func(
InitialSourceConnectionID: srcConnID,
}
if s.config.EnableDatagrams {
params.MaxDatagramFrameSize = protocol.MaxDatagramFrameSize
params.MaxDatagramFrameSize = wire.MaxDatagramSize
} else {
params.MaxDatagramFrameSize = protocol.InvalidByteCount
}