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

Issue 2670113002: Pick the DTLS handshake timeout based on the ICE RTT estimate (Closed)

Created:
3 years, 10 months ago by skvlad
Modified:
3 years, 10 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Pick the DTLS handshake timeout based on the ICE RTT estimate This CL replaces the previously-hardcoded DTLS timeout value of 50 ms with one that is picked dynamically as 2x ICE RTT (clamped between 50 and 3000 ms to keep it reasonable). No tests yet - I'm working on these, but sending out this CL early to get feedback. I've tested it manually and on slow networks it results in successful DTLS setup in a single attempt - instead of clogging up the slow link with multiple retransmissions as done previosly. BUG=webrtc:7099 Review-Url: https://codereview.webrtc.org/2670113002 Cr-Commit-Position: refs/heads/master@{#16426} Committed: https://chromium.googlesource.com/external/webrtc/+/d030912de4d49e247533892927819c4a7f055815

Patch Set 1 #

Total comments: 16

Patch Set 2 : Only use the RTT estimate once we have some packets to base it on #

Patch Set 3 : Rename InitialHandshakeRetransmissionTimeout -> InitialRetransmissionTimeout. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -7 lines) Patch
M webrtc/base/opensslstreamadapter.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M webrtc/base/opensslstreamadapter.cc View 1 2 2 chunks +7 lines, -5 lines 0 comments Download
M webrtc/base/sslstreamadapter.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M webrtc/p2p/base/dtlstransportchannel.h View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/p2p/base/dtlstransportchannel.cc View 1 2 3 chunks +27 lines, -0 lines 0 comments Download
M webrtc/p2p/base/fakeicetransport.h View 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/p2p/base/icetransportinternal.h View 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.h View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/p2p/base/port.cc View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 26 (14 generated)
skvlad
PTAL. This is missing unit tests, but I'm interested in your thoughs on the overall ...
3 years, 10 months ago (2017-02-02 07:18:43 UTC) #4
Taylor Brandstetter
https://codereview.webrtc.org/2670113002/diff/1/webrtc/base/opensslstreamadapter.cc File webrtc/base/opensslstreamadapter.cc (right): https://codereview.webrtc.org/2670113002/diff/1/webrtc/base/opensslstreamadapter.cc#newcode527 webrtc/base/opensslstreamadapter.cc:527: RTC_DCHECK(ssl_ctx_ == NULL); Should leave a comment in the ...
3 years, 10 months ago (2017-02-02 18:07:42 UTC) #7
Taylor Brandstetter
https://codereview.webrtc.org/2670113002/diff/1/webrtc/p2p/base/dtlstransportchannel.cc File webrtc/p2p/base/dtlstransportchannel.cc (right): https://codereview.webrtc.org/2670113002/diff/1/webrtc/p2p/base/dtlstransportchannel.cc#newcode705 webrtc/p2p/base/dtlstransportchannel.cc:705: rtc::Optional<int> rtt = ice_transport_->GetRttEstimate(); On 2017/02/02 18:07:41, Taylor Brandstetter ...
3 years, 10 months ago (2017-02-02 18:13:31 UTC) #8
pthatcher2
We need to not change the default behavior, because it's too risky. We should allow ...
3 years, 10 months ago (2017-02-02 20:09:44 UTC) #10
pthatcher2
lgtm Forget my other comments. You guys convinced me this is the right way to ...
3 years, 10 months ago (2017-02-02 21:52:58 UTC) #11
skvlad
PTAL. I've made changes according to code review feedback. I had to remove the RTT ...
3 years, 10 months ago (2017-02-02 22:19:33 UTC) #14
pthatcher2
lgtm
3 years, 10 months ago (2017-02-02 22:48:16 UTC) #15
Taylor Brandstetter
lgtm, though I'd still prefer one last renaming (sorry) https://codereview.webrtc.org/2670113002/diff/1/webrtc/base/sslstreamadapter.h File webrtc/base/sslstreamadapter.h (right): https://codereview.webrtc.org/2670113002/diff/1/webrtc/base/sslstreamadapter.h#newcode162 webrtc/base/sslstreamadapter.h:162: ...
3 years, 10 months ago (2017-02-02 22:57:27 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2670113002/40001
3 years, 10 months ago (2017-02-03 00:09:02 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/external/webrtc/+/d030912de4d49e247533892927819c4a7f055815
3 years, 10 months ago (2017-02-03 01:18:42 UTC) #24
skvlad
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.webrtc.org/2671903002/ by skvlad@webrtc.org. ...
3 years, 10 months ago (2017-02-03 01:37:25 UTC) #25
skvlad
3 years, 10 months ago (2017-02-03 01:43:11 UTC) #26
Message was sent while issue was closed.
On 2017/02/03 01:37:25, skvlad wrote:
> A revert of this CL (patchset #3 id:40001) has been created in
> https://codereview.webrtc.org/2671903002/ by mailto:skvlad@webrtc.org.
> 
> The reason for reverting is: Breaks Chromium FYI bots..

Looks like I can't submit the revert... anyway I created a fix in
https://codereview.webrtc.org/2677613002/.

Powered by Google App Engine
This is Rietveld 408576698