| Index: webrtc/base/opensslstreamadapter.cc
|
| diff --git a/webrtc/base/opensslstreamadapter.cc b/webrtc/base/opensslstreamadapter.cc
|
| index c2cf00779a2d9a2cde230b9ea1af65e42189eea9..abdf5e4834cdecaa6319766e4147d4ea713e525e 100644
|
| --- a/webrtc/base/opensslstreamadapter.cc
|
| +++ b/webrtc/base/opensslstreamadapter.cc
|
| @@ -771,19 +771,13 @@
|
| SSL_set_app_data(ssl_, this);
|
|
|
| SSL_set_bio(ssl_, bio, bio); // the SSL object owns the bio now.
|
| +#ifndef OPENSSL_IS_BORINGSSL
|
| if (ssl_mode_ == SSL_MODE_DTLS) {
|
| -#ifdef OPENSSL_IS_BORINGSSL
|
| - // 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.
|
| SSL_set_read_ahead(ssl_, 1);
|
| -#endif
|
| - }
|
| + }
|
| +#endif
|
|
|
| SSL_set_mode(ssl_, SSL_MODE_ENABLE_PARTIAL_WRITE |
|
| SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
|
|
|