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

Issue 1871693004: Fix AllocationSequence to handle the case when TurnPort stops using shared socket. (Closed)

Created:
4 years, 8 months ago by Sergey Ulanov
Modified:
4 years, 7 months ago
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

Fix AllocationSequence to handle the case when TurnPort stops using shared socket. AllocationSequence is responsible for receiving incoming packets on a shared UDP socket and passing them to the Port objects. TurnPort may stop sharing UDP socket in which case it allocates a new socket. AllocationSequence::OnReadPacket() wasn't handling that case properly which was causing an assert in TurnPort::OnReadPacket(). BUG=webrtc:5757 R=honghaiz@webrtc.org, jiayl@chromium.org, pthatcher@webrtc.org Committed: https://crrev.com/17fa67214caf066887bf429cf95ecaf895b0688c Cr-Commit-Position: refs/heads/master@{#12675}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : no stun server lookup #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -40 lines) Patch
M webrtc/p2p/base/turnport.h View 1 2 1 chunk +4 lines, -7 lines 0 comments Download
M webrtc/p2p/base/turnport.cc View 1 2 3 chunks +44 lines, -26 lines 0 comments Download
M webrtc/p2p/base/turnport_unittest.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M webrtc/p2p/client/basicportallocator.cc View 1 2 3 5 2 chunks +8 lines, -7 lines 0 comments Download

Messages

Total messages: 44 (15 generated)
Sergey Ulanov
4 years, 8 months ago (2016-04-09 00:15:04 UTC) #2
Sergey Ulanov
ping
4 years, 8 months ago (2016-04-12 22:58:55 UTC) #3
Sergey Ulanov
Honghai, Peter, Can you please take a look?
4 years, 8 months ago (2016-04-18 18:06:38 UTC) #6
Irfan
https://codereview.chromium.org/1871693004/diff/1/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.chromium.org/1871693004/diff/1/webrtc/p2p/client/basicportallocator.cc#newcode1100 webrtc/p2p/client/basicportallocator.cc:1100: RTP_DCHECK(udp_port_->SharedSocket()); RTC_DCHECK ?
4 years, 8 months ago (2016-04-18 21:53:12 UTC) #8
Sergey Ulanov
https://codereview.chromium.org/1871693004/diff/1/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.chromium.org/1871693004/diff/1/webrtc/p2p/client/basicportallocator.cc#newcode1100 webrtc/p2p/client/basicportallocator.cc:1100: RTP_DCHECK(udp_port_->SharedSocket()); On 2016/04/18 21:53:12, Irfan wrote: > RTC_DCHECK ? ...
4 years, 8 months ago (2016-04-18 22:35:14 UTC) #9
Irfan
https://codereview.chromium.org/1871693004/diff/1/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.chromium.org/1871693004/diff/1/webrtc/p2p/client/basicportallocator.cc#newcode1100 webrtc/p2p/client/basicportallocator.cc:1100: RTP_DCHECK(udp_port_->SharedSocket()); On 2016/04/18 22:35:14, Sergey Ulanov wrote: > On ...
4 years, 8 months ago (2016-04-18 22:42:44 UTC) #10
Sergey Ulanov
https://codereview.chromium.org/1871693004/diff/1/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.chromium.org/1871693004/diff/1/webrtc/p2p/client/basicportallocator.cc#newcode1100 webrtc/p2p/client/basicportallocator.cc:1100: RTP_DCHECK(udp_port_->SharedSocket()); On 2016/04/18 22:42:43, Irfan wrote: > On 2016/04/18 ...
4 years, 8 months ago (2016-04-18 23:02:44 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1871693004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1871693004/20001
4 years, 8 months ago (2016-04-18 23:02:51 UTC) #13
honghaiz3
On 2016/04/18 23:02:51, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
4 years, 8 months ago (2016-04-19 00:43:22 UTC) #14
honghaiz3
On 2016/04/19 00:43:22, honghaiz3 wrote: > On 2016/04/18 23:02:51, commit-bot: I haz the power wrote: ...
4 years, 8 months ago (2016-04-19 00:44:39 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 8 months ago (2016-04-19 01:03:23 UTC) #17
honghaiz
https://codereview.webrtc.org/1871693004/diff/20001/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.webrtc.org/1871693004/diff/20001/webrtc/p2p/client/basicportallocator.cc#newcode1086 webrtc/p2p/client/basicportallocator.cc:1086: if (port->SharedSocket() && port->server_address().address == remote_addr) { I think ...
4 years, 8 months ago (2016-04-19 05:32:20 UTC) #18
Sergey Ulanov
Added a test now. PTAL https://codereview.chromium.org/1871693004/diff/20001/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.chromium.org/1871693004/diff/20001/webrtc/p2p/client/basicportallocator.cc#newcode1086 webrtc/p2p/client/basicportallocator.cc:1086: if (port->SharedSocket() && port->server_address().address ...
4 years, 8 months ago (2016-04-20 20:50:56 UTC) #20
Sergey Ulanov
honghaiz: ping
4 years, 8 months ago (2016-04-21 23:12:20 UTC) #21
honghaiz3
https://codereview.webrtc.org/1871693004/diff/20001/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.webrtc.org/1871693004/diff/20001/webrtc/p2p/client/basicportallocator.cc#newcode1086 webrtc/p2p/client/basicportallocator.cc:1086: if (port->SharedSocket() && port->server_address().address == remote_addr) { On 2016/04/20 ...
4 years, 8 months ago (2016-04-22 01:49:03 UTC) #23
honghaiz3
https://codereview.webrtc.org/1871693004/diff/40001/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.webrtc.org/1871693004/diff/40001/webrtc/p2p/client/basicportallocator.cc#newcode1096 webrtc/p2p/client/basicportallocator.cc:1096: if (stun_servers.find(remote_addr) != stun_servers.end()) { On 2016/04/22 01:49:03, honghaiz3 ...
4 years, 8 months ago (2016-04-22 03:52:34 UTC) #24
Sergey Ulanov
https://codereview.webrtc.org/1871693004/diff/40001/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.webrtc.org/1871693004/diff/40001/webrtc/p2p/client/basicportallocator.cc#newcode1096 webrtc/p2p/client/basicportallocator.cc:1096: if (stun_servers.find(remote_addr) != stun_servers.end()) { On 2016/04/22 03:52:33, honghaiz3 ...
4 years, 8 months ago (2016-04-22 18:05:52 UTC) #25
honghaiz3
https://codereview.webrtc.org/1871693004/diff/40001/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.webrtc.org/1871693004/diff/40001/webrtc/p2p/client/basicportallocator.cc#newcode1096 webrtc/p2p/client/basicportallocator.cc:1096: if (stun_servers.find(remote_addr) != stun_servers.end()) { On 2016/04/22 18:05:52, Sergey ...
4 years, 8 months ago (2016-04-22 19:17:28 UTC) #26
Sergey Ulanov
On 2016/04/22 19:17:28, honghaiz3 wrote: > https://codereview.webrtc.org/1871693004/diff/40001/webrtc/p2p/client/basicportallocator.cc > File webrtc/p2p/client/basicportallocator.cc (right): > > https://codereview.webrtc.org/1871693004/diff/40001/webrtc/p2p/client/basicportallocator.cc#newcode1096 > ...
4 years, 8 months ago (2016-04-22 21:23:50 UTC) #27
honghaiz3
On 2016/04/22 21:23:50, Sergey Ulanov wrote: > On 2016/04/22 19:17:28, honghaiz3 wrote: > > > ...
4 years, 8 months ago (2016-04-22 22:05:42 UTC) #28
honghaiz3
lgtm
4 years, 8 months ago (2016-04-22 22:05:57 UTC) #29
jiayl
lgtm
4 years, 8 months ago (2016-04-22 22:19:15 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1871693004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1871693004/100001
4 years, 8 months ago (2016-04-22 22:48:16 UTC) #33
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, 8 months ago (2016-04-23 00:48:49 UTC) #35
pthatcher1
lgtm
4 years, 7 months ago (2016-05-05 23:11:00 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1871693004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1871693004/100001
4 years, 7 months ago (2016-05-10 00:14:04 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_x86_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_compile_x86_dbg/builds/3829)
4 years, 7 months ago (2016-05-10 00:26:35 UTC) #40
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/17fa67214caf066887bf429cf95ecaf895b0688c Cr-Commit-Position: refs/heads/master@{#12675}
4 years, 7 months ago (2016-05-10 17:21:00 UTC) #43
Sergey Ulanov
4 years, 7 months ago (2016-05-10 17:21:01 UTC) #44
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
17fa67214caf066887bf429cf95ecaf895b0688c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698