Commit Graph

7 Commits

Author SHA1 Message Date
Sean DuBois
545613dcde Close DTLS when fingerprint verification fails
Before we would set the PeerConnection to failed, but we would leave the
DTLSTransport. This means that a user could still interact with the
other transports.

Relates to #1708
2021-03-17 16:48:08 -07:00
Sean DuBois
c901d6f005 Update TestInvalidFingerprintCausesFailed
Have the test assert both peers. Nothing was broken, we just didn't have
coverage on both paths.

Resolve #1708
2021-03-17 15:57:06 -07:00
Sean DuBois
9c7b365144 Use closePairNow in tests
Instead of explicitly closing each PeerConnection use helper.
No change in test behavior, just makes code more consistent.
2021-02-16 15:47:58 -08:00
mission-liao
40eb352909 Add SetReadDeadline to RTPSender
ReadDeadline is supported by RTPReceiver but not RTPSender. This
commit attempts to provide similar method for RTPSender.

If SetReadDeadine is called with:
- an empty time.Time: it will clear all previous set deadline.
- a non-empty time.Time: it will abort all pending "ReadRTCP" calls if
  the specified time is up.
2021-02-04 10:16:44 +08:00
Atsushi Watanabe
b457163d6d Discard double close error of dtls conn
sctp.Stream.Close() closes inner dtls connection.
2020-03-24 19:14:25 +09:00
Atsushi Watanabe
27d9bbb7bd Upgrade golangci-lint to 1.19.1
Fix whitespace and stylecheck errors.
Disable godox.
2020-01-11 22:59:33 -08:00
Sean DuBois
d10941f2a4 Add SettingEngine entries needed for offline sync
Allow users to set statice ICECredentials and to disable
DTLS Certificate Verification
2019-12-09 16:43:44 -08:00