Skip to content

Request dtls.config to peerconnection config #2477

@lisay-yan

Description

@lisay-yan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions