Skip to content

Commit 164adb4

Browse files
authored
webrtc: increase receive buffer size on listener (#2730)
1 parent 83cbc5a commit 164adb4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

p2p/transport/webrtc/listener.go

+4
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ func (l *listener) setupConnection(
204204
l.transport.peerConnectionTimeouts.Failed,
205205
l.transport.peerConnectionTimeouts.Keepalive,
206206
)
207+
// This is higher than the path MTU due to a bug in the sctp chunking logic.
208+
// Remove this after https://github.com/pion/sctp/pull/301 is included
209+
// in a release.
210+
settingEngine.SetReceiveMTU(udpmux.ReceiveBufSize)
207211
settingEngine.DetachDataChannels()
208212

209213
w, err = newWebRTCConnection(settingEngine, l.config)

0 commit comments

Comments
 (0)