| Index: webrtc/base/opensslstreamadapter.cc
|
| diff --git a/webrtc/base/opensslstreamadapter.cc b/webrtc/base/opensslstreamadapter.cc
|
| index 0057ce1bf5bc3a9c0ed62c6516dc7516b63e6b99..83efdc8bc0579493018eb7604ba99fb965e25d1a 100644
|
| --- a/webrtc/base/opensslstreamadapter.cc
|
| +++ b/webrtc/base/opensslstreamadapter.cc
|
| @@ -521,12 +521,6 @@
|
| void OpenSSLStreamAdapter::SetMaxProtocolVersion(SSLProtocolVersion version) {
|
| RTC_DCHECK(ssl_ctx_ == NULL);
|
| ssl_max_version_ = version;
|
| -}
|
| -
|
| -void OpenSSLStreamAdapter::SetInitialRetransmissionTimeout(
|
| - int timeout_ms) {
|
| - RTC_DCHECK(ssl_ctx_ == NULL);
|
| - dtls_handshake_timeout_ms_ = timeout_ms;
|
| }
|
|
|
| //
|
| @@ -806,7 +800,11 @@
|
| SSL_set_bio(ssl_, bio, bio); // the SSL object owns the bio now.
|
| if (ssl_mode_ == SSL_MODE_DTLS) {
|
| #ifdef OPENSSL_IS_BORINGSSL
|
| - DTLSv1_set_initial_timeout_duration(ssl_, dtls_handshake_timeout_ms_);
|
| + // Change the initial retransmission timer from 1 second to 50ms.
|
| + // This will likely result in some spurious retransmissions, but
|
| + // it's useful for ensuring a timely handshake when there's packet
|
| + // loss.
|
| + DTLSv1_set_initial_timeout_duration(ssl_, 50);
|
| #else
|
| // Enable read-ahead for DTLS so whole packets are read from internal BIO
|
| // before parsing. This is done internally by BoringSSL for DTLS.
|
|
|