2022-01-06 12:17:10 +00:00
|
|
|
//go:build windows
|
|
|
|
|
|
|
|
package quic
|
|
|
|
|
|
|
|
const (
|
2023-05-06 00:42:41 +00:00
|
|
|
// Due to https://github.com/quic-go/quic-go/issues/3273, MTU discovery is disabled on Windows
|
|
|
|
// 1220 is the default value https://github.com/quic-go/quic-go/blob/84e03e59760ceee37359688871bb0688fcc4e98f/internal/protocol/params.go#L138
|
2022-01-06 12:17:10 +00:00
|
|
|
MaxDatagramFrameSize = 1220
|
2023-05-06 00:42:41 +00:00
|
|
|
// 3 more bytes are reserved at https://github.com/quic-go/quic-go/blob/v0.24.0/internal/wire/datagram_frame.go#L61
|
2022-09-01 17:50:25 +00:00
|
|
|
maxDatagramPayloadSize = MaxDatagramFrameSize - 3 - sessionIDLen - typeIDLen
|
2022-01-06 12:17:10 +00:00
|
|
|
)
|