latest DTLS to fix long delay connections (#405)

This commit is contained in:
Raja Subramanian
2022-02-05 13:14:06 +05:30
committed by GitHub
parent 9c3794144e
commit 7f2a5ae036
3 changed files with 9 additions and 19 deletions
-11
View File
@@ -111,17 +111,6 @@ func newPeerConnection(params TransportParams, onBandwidthEstimator func(estimat
if params.ProtocolVersion.SupportsICELite() {
se.SetLite(true)
}
//
// This introduces a half-RTT extra latency in connection setup,
// i.e. if SFU is acting as DTLSRoleClient, it can send the client-hello as soon
// as it is ready. With this change, signalling has to be sent back to the client
// and client has to do client-hello which adds half RTT.
//
// Doing this to address https://github.com/pion/webrtc/issues/2089. This may be
// a Chrome browser issue and can potentially be removed once we understand the source
// of the issue better.
//
se.SetAnsweringDTLSRole(webrtc.DTLSRoleServer)
lf := serverlogger.NewLoggerFactory(logr.Logger(params.Logger))
if lf != nil {