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

Issue 1247573002: Fix a Turn TCP port issue. (Closed)

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

Description

Fix Turn TCP port issue. Sometimes the port still try to send stun packet when the connection is disconnected, causing an assertion error. BUG=4859 Committed: https://crrev.com/b19eba3d4bbc70ece91d524e21e2e9d4253ff7a9 Cr-Commit-Position: refs/heads/master@{#9671}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : Slight change in asynctcpsocket.cc #

Total comments: 20

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -21 lines) Patch
M webrtc/base/asynctcpsocket.cc View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M webrtc/p2p/base/turnport.h View 1 2 3 4 5 6 3 chunks +11 lines, -2 lines 0 comments Download
M webrtc/p2p/base/turnport.cc View 1 2 3 4 5 6 7 15 chunks +42 lines, -16 lines 0 comments Download
M webrtc/p2p/base/turnport_unittest.cc View 1 2 3 4 5 6 7 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 60 (24 generated)
honghaiz3
Please take a look at the CL. Will add tests later.
5 years, 5 months ago (2015-07-20 21:47:23 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1247573002/20001
5 years, 5 months ago (2015-07-20 22:19:14 UTC) #5
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 5 months ago (2015-07-20 22:19:16 UTC) #7
honghaiz3
Added tests.
5 years, 5 months ago (2015-07-23 00:58:05 UTC) #8
honghaiz3
On 2015/07/23 00:58:05, honghaiz3 wrote: > Added tests. Added the change in asynctcpsocket.cc. It is ...
5 years, 4 months ago (2015-07-28 16:28:22 UTC) #12
pthatcher1
https://codereview.webrtc.org/1247573002/diff/140001/webrtc/base/asynctcpsocket.cc File webrtc/base/asynctcpsocket.cc (right): https://codereview.webrtc.org/1247573002/diff/140001/webrtc/base/asynctcpsocket.cc#newcode131 webrtc/base/asynctcpsocket.cc:131: if (addr != remote_address) { Can you please add ...
5 years, 4 months ago (2015-07-28 18:23:04 UTC) #15
honghaiz3
On 2015/07/28 18:23:04, pthatcher1 wrote: > https://codereview.webrtc.org/1247573002/diff/140001/webrtc/base/asynctcpsocket.cc > File webrtc/base/asynctcpsocket.cc (right): > > https://codereview.webrtc.org/1247573002/diff/140001/webrtc/base/asynctcpsocket.cc#newcode131 > ...
5 years, 4 months ago (2015-07-28 20:43:30 UTC) #17
pthatcher1
lgtm, assuming you give the enum a prefix. I'll leave port_state_ vs. state_ up to ...
5 years, 4 months ago (2015-07-28 22:06:14 UTC) #19
honghaiz3
On 2015/07/28 22:06:14, pthatcher1 wrote: > lgtm, assuming you give the enum a prefix. > ...
5 years, 4 months ago (2015-07-28 23:23:13 UTC) #21
honghaiz3
5 years, 4 months ago (2015-07-28 23:25:37 UTC) #22
juberti1
I think it would be simpler if we just purged all in-flight requests when the ...
5 years, 4 months ago (2015-07-29 05:28:13 UTC) #23
pthatcher1
https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc File webrtc/p2p/base/turnport.cc (right): https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc#newcode341 webrtc/p2p/base/turnport.cc:341: // TCP port becomes CONNECTING after the socket is ...
5 years, 4 months ago (2015-07-29 20:51:50 UTC) #24
honghaiz3
Plus, I put the Enum inside the class so that it has less chance to ...
5 years, 4 months ago (2015-07-29 21:40:58 UTC) #26
honghaiz3
https://codereview.webrtc.org/1247573002/diff/140001/webrtc/base/asynctcpsocket.cc File webrtc/base/asynctcpsocket.cc (right): https://codereview.webrtc.org/1247573002/diff/140001/webrtc/base/asynctcpsocket.cc#newcode131 webrtc/base/asynctcpsocket.cc:131: if (addr != remote_address) { Done On 2015/07/28 18:23:04, ...
5 years, 4 months ago (2015-07-29 21:44:13 UTC) #27
pthatcher1
https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc File webrtc/p2p/base/turnport.cc (right): https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc#newcode643 webrtc/p2p/base/turnport.cc:643: if (port_state_ == DISCONNECTED) { On 2015/07/29 21:44:13, honghaiz3 ...
5 years, 4 months ago (2015-07-29 22:00:10 UTC) #28
honghaiz3
On 2015/07/29 22:00:10, pthatcher1 wrote: > https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc > File webrtc/p2p/base/turnport.cc (right): > > https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc#newcode643 > ...
5 years, 4 months ago (2015-07-29 22:15:06 UTC) #29
pthatcher1
lgtm
5 years, 4 months ago (2015-07-29 22:29:54 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1247573002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1247573002/280001
5 years, 4 months ago (2015-07-30 17:21:02 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_arm64_rel/builds/1579)
5 years, 4 months ago (2015-07-30 17:35:41 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1247573002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1247573002/280001
5 years, 4 months ago (2015-07-30 17:41:29 UTC) #36
juberti1
https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc File webrtc/p2p/base/turnport.cc (right): https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc#newcode643 webrtc/p2p/base/turnport.cc:643: if (port_state_ == DISCONNECTED) { On 2015/07/29 22:00:10, pthatcher1 ...
5 years, 4 months ago (2015-07-30 18:22:33 UTC) #37
honghaiz3
https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc File webrtc/p2p/base/turnport.cc (right): https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc#newcode643 webrtc/p2p/base/turnport.cc:643: if (port_state_ == DISCONNECTED) { On 2015/07/30 18:22:33, juberti1 ...
5 years, 4 months ago (2015-07-30 18:38:27 UTC) #39
pthatcher1
On 2015/07/30 18:38:27, honghaiz3 wrote: > https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc > File webrtc/p2p/base/turnport.cc (right): > > https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc#newcode643 > ...
5 years, 4 months ago (2015-07-30 18:47:48 UTC) #40
juberti1
https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc File webrtc/p2p/base/turnport.cc (right): https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc#newcode341 webrtc/p2p/base/turnport.cc:341: // TCP port becomes CONNECTING after the socket is ...
5 years, 4 months ago (2015-07-30 20:47:40 UTC) #41
pthatcher1
https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc File webrtc/p2p/base/turnport.cc (right): https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc#newcode341 webrtc/p2p/base/turnport.cc:341: // TCP port becomes CONNECTING after the socket is ...
5 years, 4 months ago (2015-07-30 21:29:16 UTC) #42
honghaiz3
https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc File webrtc/p2p/base/turnport.cc (right): https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc#newcode341 webrtc/p2p/base/turnport.cc:341: // TCP port becomes CONNECTING after the socket is ...
5 years, 4 months ago (2015-07-30 21:35:05 UTC) #43
juberti1
On 2015/07/30 21:35:05, honghaiz3 wrote: > https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc > File webrtc/p2p/base/turnport.cc (right): > > https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc#newcode341 > ...
5 years, 4 months ago (2015-07-30 21:56:47 UTC) #44
honghaiz3
Using Clear() + Check state when creating permission requests. PTAL. https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc File webrtc/p2p/base/turnport.cc (right): https://codereview.webrtc.org/1247573002/diff/200001/webrtc/p2p/base/turnport.cc#newcode643 ...
5 years, 4 months ago (2015-07-31 00:17:06 UTC) #48
juberti1
Overall looks good. One comment below. https://codereview.webrtc.org/1247573002/diff/360001/webrtc/p2p/base/turnport.cc File webrtc/p2p/base/turnport.cc (right): https://codereview.webrtc.org/1247573002/diff/360001/webrtc/p2p/base/turnport.cc#newcode1292 webrtc/p2p/base/turnport.cc:1292: if (port_->connected()) { ...
5 years, 4 months ago (2015-07-31 06:04:42 UTC) #49
honghaiz3
https://codereview.webrtc.org/1247573002/diff/360001/webrtc/p2p/base/turnport.cc File webrtc/p2p/base/turnport.cc (right): https://codereview.webrtc.org/1247573002/diff/360001/webrtc/p2p/base/turnport.cc#newcode1292 webrtc/p2p/base/turnport.cc:1292: if (port_->connected()) { On 2015/07/31 06:04:42, juberti1 wrote: > ...
5 years, 4 months ago (2015-07-31 15:39:36 UTC) #50
juberti1
lgtm
5 years, 4 months ago (2015-07-31 16:22:33 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1247573002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1247573002/380001
5 years, 4 months ago (2015-07-31 17:06:30 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: win_baremetal on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_baremetal/builds/6628)
5 years, 4 months ago (2015-07-31 18:13:17 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1247573002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1247573002/380001
5 years, 4 months ago (2015-08-03 16:33:01 UTC) #58
commit-bot: I haz the power
Committed patchset #8 (id:380001)
5 years, 4 months ago (2015-08-03 17:23:35 UTC) #59
commit-bot: I haz the power
5 years, 4 months ago (2015-08-03 17:23:47 UTC) #60
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b19eba3d4bbc70ece91d524e21e2e9d4253ff7a9
Cr-Commit-Position: refs/heads/master@{#9671}

Powered by Google App Engine
This is Rietveld 408576698