Skip to content

Commit

Permalink
webrtc: increase receive buffer size on listener (#2730)
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt authored Mar 12, 2024
1 parent 83cbc5a commit 164adb4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions p2p/transport/webrtc/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 164adb4

Please sign in to comment.