DTLS: fail the connection if DTLSv1_handle_timeout returns an error
which signals a permanent connection failure to the application BUG=webrtc:13999 Change-Id: I7ba25db4aa9035583558a613db97561c48796c76 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/260100 Reviewed-by: Jonas Oreland <jonaso@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com> Cr-Commit-Position: refs/heads/main@{#36700}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
2dad0a1668
commit
9c83d9d99e
@ -841,6 +841,8 @@ void OpenSSLStreamAdapter::SetTimeout(int delay_ms) {
|
||||
RTC_LOG(LS_INFO) << "DTLS retransmission";
|
||||
} else if (res < 0) {
|
||||
RTC_LOG(LS_INFO) << "DTLSv1_handle_timeout() return -1";
|
||||
Error("DTLSv1_handle_timeout", res, -1, true);
|
||||
return webrtc::TimeDelta::PlusInfinity();
|
||||
}
|
||||
ContinueSSL();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user