Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: webrtc/base/opensslstreamadapter.h

Issue 2670113002: Pick the DTLS handshake timeout based on the ICE RTT estimate (Closed)
Patch Set: Rename InitialHandshakeRetransmissionTimeout -> InitialRetransmissionTimeout. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/base/opensslstreamadapter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 size_t digest_len, 69 size_t digest_len,
70 SSLPeerCertificateDigestError* error = nullptr) override; 70 SSLPeerCertificateDigestError* error = nullptr) override;
71 71
72 std::unique_ptr<SSLCertificate> GetPeerCertificate() const override; 72 std::unique_ptr<SSLCertificate> GetPeerCertificate() const override;
73 73
74 // Goes from state SSL_NONE to either SSL_CONNECTING or SSL_WAIT, depending 74 // Goes from state SSL_NONE to either SSL_CONNECTING or SSL_WAIT, depending
75 // on whether the underlying stream is already open or not. 75 // on whether the underlying stream is already open or not.
76 int StartSSL() override; 76 int StartSSL() override;
77 void SetMode(SSLMode mode) override; 77 void SetMode(SSLMode mode) override;
78 void SetMaxProtocolVersion(SSLProtocolVersion version) override; 78 void SetMaxProtocolVersion(SSLProtocolVersion version) override;
79 void SetInitialRetransmissionTimeout(int timeout_ms) override;
79 80
80 StreamResult Read(void* data, 81 StreamResult Read(void* data,
81 size_t data_len, 82 size_t data_len,
82 size_t* read, 83 size_t* read,
83 int* error) override; 84 int* error) override;
84 StreamResult Write(const void* data, 85 StreamResult Write(const void* data,
85 size_t data_len, 86 size_t data_len,
86 size_t* written, 87 size_t* written,
87 int* error) override; 88 int* error) override;
88 void Close() override; 89 void Close() override;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 std::string peer_certificate_digest_algorithm_; 206 std::string peer_certificate_digest_algorithm_;
206 207
207 // The DtlsSrtp ciphers 208 // The DtlsSrtp ciphers
208 std::string srtp_ciphers_; 209 std::string srtp_ciphers_;
209 210
210 // Do DTLS or not 211 // Do DTLS or not
211 SSLMode ssl_mode_; 212 SSLMode ssl_mode_;
212 213
213 // Max. allowed protocol version 214 // Max. allowed protocol version
214 SSLProtocolVersion ssl_max_version_; 215 SSLProtocolVersion ssl_max_version_;
216
217 // A 50-ms initial timeout ensures rapid setup on fast connections, but may
218 // be too aggressive for low bandwidth links.
219 int dtls_handshake_timeout_ms_ = 50;
215 }; 220 };
216 221
217 ///////////////////////////////////////////////////////////////////////////// 222 /////////////////////////////////////////////////////////////////////////////
218 223
219 } // namespace rtc 224 } // namespace rtc
220 225
221 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ 226 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__
OLDNEW
« no previous file with comments | « no previous file | webrtc/base/opensslstreamadapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698