Upgrade to Pion 3.0.11, disable active TCP (#1836)

This commit is contained in:
David Zhao
2023-06-28 16:53:58 -07:00
committed by GitHub
parent 2668073c29
commit 7be9e2258d
4 changed files with 16 additions and 10 deletions
+3
View File
@@ -51,6 +51,9 @@ func NewWebRTCConfig(conf *config.Config) (*WebRTCConfig, error) {
return nil, err
}
// we don't want to use active TCP on a server, clients should be dialing
webRTCConfig.SettingEngine.DisableActiveTCP(true)
if rtcConf.PacketBufferSize == 0 {
rtcConf.PacketBufferSize = 500
}
+1
View File
@@ -612,6 +612,7 @@ func (t *PCTransport) onPeerConnectionStateChange(state webrtc.PeerConnectionSta
}
t.maybeNotifyFullyEstablished()
t.logICECandidates()
}
case webrtc.PeerConnectionStateFailed:
t.params.Logger.Infow("peer connection failed")