mirror of
https://github.com/pion/webrtc.git
synced 2025-10-25 08:10:37 +08:00
DTLS retransmission interval setting
Add SetDTLSRetranmissionInterval setting to SettingEngine. Add test for SetDTLSRetransmissionInterval
This commit is contained in:
committed by
Raja Subramanian
parent
8da9a678c5
commit
1846813609
@@ -51,6 +51,9 @@ type SettingEngine struct {
|
||||
SRTP *uint
|
||||
SRTCP *uint
|
||||
}
|
||||
dtls struct {
|
||||
retransmissionInterval time.Duration
|
||||
}
|
||||
sdpMediaLevelFingerprints bool
|
||||
answeringDTLSRole DTLSRole
|
||||
disableCertificateFingerprintVerification bool
|
||||
@@ -296,3 +299,8 @@ func (e *SettingEngine) DisableMediaEngineCopy(isDisabled bool) {
|
||||
func (e *SettingEngine) SetReceiveMTU(receiveMTU uint) {
|
||||
e.receiveMTU = receiveMTU
|
||||
}
|
||||
|
||||
// SetDTLSRetransmissionInterval sets the retranmission interval for DTLS.
|
||||
func (e *SettingEngine) SetDTLSRetransmissionInterval(interval time.Duration) {
|
||||
e.dtls.retransmissionInterval = interval
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user