-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Summary
DTLS handshake timeout can be controlled by context in dtls.config.
While, I can't find any way to expose the timer control during new PeerConn, or data channel.
Appreciate if provide a way to set the dtls timeout for PeerConn.
&dtls.Config{
ConnectContextMaker: func() (context.Context, func()) {
return context.WithTimeout(ctxParent, 30*time.Second)
}
PeerConn only can indicate dtlsRole and Fingerprints now.
pc.dtlsTransport.Start(DTLSParameters{
Role: dtlsRole,
Fingerprints: []DTLSFingerprint{{Algorithm: fingerprintHash, Value: fingerprint}},
})
Motivation
In telecommunications industry, for negotiated SDP, there maybe long call setup case.
Make dtls timeout controllable and configurable can guard webrtc service.
Describe alternatives you've considered
No idea except change logic.
Additional context
Appreciate if dtls timeout can be configurable for peerconn as soon as possible.