Chromium Code Reviews

Issue 1912323002: Cache a ClientHello received before the DTLS handshake has started. (Closed)

Created:
4 years, 8 months ago by Taylor Brandstetter
Modified:
4 years, 7 months ago
Reviewers:
pthatcher1, honghaiz3, juberti2
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Cache a ClientHello received before the DTLS handshake has started. In some cases, the DTLS ClientHello may arrive before the server's transport is writable (before it receives a STUN ping response), or even before it receives a remote fingerprint. If this packet is discarded, it may take a second for a it to be sent again. So, this CL caches it instead of dropping it, and feeds it into the SSL library once the handshake has been started. BUG=webrtc:5789 Committed: https://crrev.com/e84cd2eacad78c67b8c31912abc40c14314d4175 Cr-Commit-Position: refs/heads/master@{#12634}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Adding tests for receiving a ClientHello before the channel is writable, or before getting a remoteā€¦ #

Patch Set 3 : Fixing typo. #

Total comments: 2

Patch Set 4 : Fixing typos in comments. #

Unified diffs Side-by-side diffs Stats (+198 lines, -73 lines)
M webrtc/p2p/base/dtlstransportchannel.h View 1 chunk +6 lines, -0 lines 0 comments
M webrtc/p2p/base/dtlstransportchannel.cc View 3 chunks +33 lines, -8 lines 0 comments
M webrtc/p2p/base/dtlstransportchannel_unittest.cc View 9 chunks +128 lines, -40 lines 0 comments
M webrtc/p2p/base/faketransportcontroller.h View 6 chunks +31 lines, -25 lines 0 comments

Messages

Total messages: 26 (9 generated)
Taylor Brandstetter
PTAL. By the way, I don't have any unit tests because it would be hard ...
4 years, 8 months ago (2016-04-23 00:34:50 UTC) #2
honghaiz3
On 2016/04/23 00:34:50, Taylor Brandstetter wrote: > PTAL. > > By the way, I don't ...
4 years, 8 months ago (2016-04-25 19:56:32 UTC) #3
juberti2
Needs unit test https://codereview.webrtc.org/1912323002/diff/1/webrtc/p2p/base/dtlstransportchannel.cc File webrtc/p2p/base/dtlstransportchannel.cc (right): https://codereview.webrtc.org/1912323002/diff/1/webrtc/p2p/base/dtlstransportchannel.cc#newcode479 webrtc/p2p/base/dtlstransportchannel.cc:479: if (IsDtlsPacket(data, size)) { We should ...
4 years, 8 months ago (2016-04-25 20:40:19 UTC) #5
Taylor Brandstetter
On 2016/04/25 19:56:32, honghaiz3 wrote: > On 2016/04/23 00:34:50, Taylor Brandstetter wrote: > > PTAL. ...
4 years, 8 months ago (2016-04-26 01:32:14 UTC) #6
juberti2
On 2016/04/26 01:32:14, Taylor Brandstetter wrote: > On 2016/04/25 19:56:32, honghaiz3 wrote: > > On ...
4 years, 8 months ago (2016-04-26 05:47:21 UTC) #7
juberti2
On 2016/04/26 05:47:21, juberti2 wrote: > On 2016/04/26 01:32:14, Taylor Brandstetter wrote: > > On ...
4 years, 8 months ago (2016-04-26 17:15:59 UTC) #8
Taylor Brandstetter
On 2016/04/26 17:15:59, juberti2 wrote: > On 2016/04/26 05:47:21, juberti2 wrote: > > On 2016/04/26 ...
4 years, 8 months ago (2016-04-26 18:36:16 UTC) #9
Taylor Brandstetter
On 2016/04/26 18:36:16, Taylor Brandstetter wrote: > On 2016/04/26 17:15:59, juberti2 wrote: > > On ...
4 years, 8 months ago (2016-04-26 18:37:48 UTC) #10
juberti2
On 2016/04/26 18:37:48, Taylor Brandstetter wrote: > On 2016/04/26 18:36:16, Taylor Brandstetter wrote: > > ...
4 years, 8 months ago (2016-04-26 19:35:16 UTC) #11
Taylor Brandstetter
On 2016/04/26 19:35:16, juberti2 wrote: > On 2016/04/26 18:37:48, Taylor Brandstetter wrote: > > On ...
4 years, 8 months ago (2016-04-26 20:29:30 UTC) #12
Taylor Brandstetter
https://codereview.webrtc.org/1912323002/diff/1/webrtc/p2p/base/dtlstransportchannel.cc File webrtc/p2p/base/dtlstransportchannel.cc (right): https://codereview.webrtc.org/1912323002/diff/1/webrtc/p2p/base/dtlstransportchannel.cc#newcode479 webrtc/p2p/base/dtlstransportchannel.cc:479: if (IsDtlsPacket(data, size)) { On 2016/04/25 20:40:18, juberti2 wrote: ...
4 years, 8 months ago (2016-04-26 22:55:58 UTC) #14
pthatcher1
lgtm, with comment fixes https://codereview.webrtc.org/1912323002/diff/40001/webrtc/p2p/base/dtlstransportchannel_unittest.cc File webrtc/p2p/base/dtlstransportchannel_unittest.cc (right): https://codereview.webrtc.org/1912323002/diff/40001/webrtc/p2p/base/dtlstransportchannel_unittest.cc#newcode924 webrtc/p2p/base/dtlstransportchannel_unittest.cc:924: // Epect a DTLS ClientHello ...
4 years, 7 months ago (2016-04-29 22:19:01 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1912323002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1912323002/60001
4 years, 7 months ago (2016-05-04 20:17:20 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 7 months ago (2016-05-04 22:17:52 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1912323002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1912323002/60001
4 years, 7 months ago (2016-05-05 00:15:20 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-05 00:16:39 UTC) #24
commit-bot: I haz the power
4 years, 7 months ago (2016-05-05 00:16:47 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e84cd2eacad78c67b8c31912abc40c14314d4175
Cr-Commit-Position: refs/heads/master@{#12634}

Powered by Google App Engine