Skip to content

Commit 8fbf821

Browse files
Brave YaoSean-Der
authored andcommitted
Change receiveMTU from 1460 -> 1500
Raise the default ReceiveMTU to 1500, as same as the default MTU setting of WebRTC. This is because some senders, i.e. FFmpeg, may packetize RTP with 1460 payload + 12 RTP header + etc. Fixes #2927
1 parent e51984e commit 8fbf821

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

constants.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ package webrtc
66
import "github.com/pion/dtls/v3"
77

88
const (
9-
// Equal to UDP MTU
10-
receiveMTU = 1460
9+
// default as the standard ethernet MTU
10+
// can be overwritten with SettingEngine.SetReceiveMTU()
11+
receiveMTU = 1500
1112

1213
// simulcastProbeCount is the amount of RTP Packets
1314
// that handleUndeclaredSSRC will read and try to dispatch from

0 commit comments

Comments
 (0)