Browse Source

webrtc: increase receive buffer size on listener (#2730)

webrtc-debug
sukun 8 months ago
committed by GitHub
parent
commit
164adb40fe
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      p2p/transport/webrtc/listener.go

4
p2p/transport/webrtc/listener.go

@ -204,6 +204,10 @@ func (l *listener) setupConnection(
l.transport.peerConnectionTimeouts.Failed,
l.transport.peerConnectionTimeouts.Keepalive,
)
// This is higher than the path MTU due to a bug in the sctp chunking logic.
// Remove this after https://github.com/pion/sctp/pull/301 is included
// in a release.
settingEngine.SetReceiveMTU(udpmux.ReceiveBufSize)
settingEngine.DetachDataChannels()
w, err = newWebRTCConnection(settingEngine, l.config)

Loading…
Cancel
Save