Skip to content

Commit

Permalink
change mtu
Browse files Browse the repository at this point in the history
  • Loading branch information
ckousik committed Aug 6, 2022
1 parent 40d5850 commit 2cf950f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion p2p/transport/webrtc/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,12 @@ func (l *listener) accept(ctx context.Context, addr candidateAddr) (tpt.CapableC
defer cleanup()
return nil, err
}
pc.SetLocalDescription(answer)

err = pc.SetLocalDescription(answer)
if err != nil {
defer cleanup()
return nil, err
}

// await peerconnection connected state
select {
Expand Down
2 changes: 1 addition & 1 deletion p2p/transport/webrtc/udp_mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type udpMuxNewAddr struct {
}

const maxAddrSize = 512
const receiveMTU = 8192
const receiveMTU = 1500

// NewUDPMuxNewAddr creates an implementation of UDPMux
func NewUDPMuxNewAddr(params ice.UDPMuxParams, newAddrChan chan candidateAddr) *udpMuxNewAddr {
Expand Down

0 comments on commit 2cf950f

Please sign in to comment.