Stop an SCTP connection when the DTLS transport closes.

This CL propagates a "closed" signal from DTLS up to the
SCTP section of the data channel controller, where it causes
closing of all open datachannels.

Bug: chromium:1030631, webrtc:10360
Change-Id: I88bb9e1aff5c25f330edfd092ef609d4fcc3a9f8
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/162206
Reviewed-by: Steve Anton <steveanton@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30099}
This commit is contained in:
Harald Alvestrand
2019-12-16 10:37:04 +01:00
committed by Commit Bot
parent 8525a8028a
commit 2697ac1a1b
11 changed files with 77 additions and 0 deletions

View File

@ -46,6 +46,7 @@ class DataChannelController : public DataChannelProviderInterface,
void OnChannelClosing(int channel_id) override;
void OnChannelClosed(int channel_id) override;
void OnReadyToSend() override;
void OnTransportClosed() override;
// Called from PeerConnection::SetupDataChannelTransport_n
void SetupDataChannelTransport_n();