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

Issue 1415313004: Destroy a Connection if a CreatePermission request fails. (Closed)

Created:
5 years, 2 months ago by Taylor Brandstetter
Modified:
5 years 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

Destroy a Connection if a CreatePermission request fails. This means that if a TURN server denies permission for an unreachable address, we'll no longer ping it fruitlessly. BUG=webrtc:4917 Committed: https://crrev.com/376e1235c7b602e86afe9f36eb81289e42643718 Cr-Commit-Position: refs/heads/master@{#10789}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Adding comment. #

Total comments: 1

Patch Set 3 : Getting rid of 'TurnConnection' and just destroying the connection directly from TurnEntry. #

Total comments: 5

Patch Set 4 : Remove "friend" relationship between TurnEntry and Connection. #

Total comments: 1

Patch Set 5 : Switching to "FailAndDestroy" method on Connection. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -17 lines) Patch
M webrtc/p2p/base/port.h View 1 2 3 4 2 chunks +10 lines, -6 lines 0 comments Download
M webrtc/p2p/base/port.cc View 1 2 3 4 3 chunks +10 lines, -6 lines 0 comments Download
M webrtc/p2p/base/turnport.h View 1 2 4 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/p2p/base/turnport.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M webrtc/p2p/base/turnport_unittest.cc View 3 chunks +47 lines, -4 lines 0 comments Download
M webrtc/p2p/base/turnserver.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M webrtc/p2p/base/turnserver.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (6 generated)
Taylor Brandstetter
https://codereview.webrtc.org/1415313004/diff/1/webrtc/p2p/base/port.h File webrtc/p2p/base/port.h (right): https://codereview.webrtc.org/1415313004/diff/1/webrtc/p2p/base/port.h#newcode642 webrtc/p2p/base/port.h:642: int error_ = 0; Just style improvements here.
5 years, 2 months ago (2015-10-22 00:36:53 UTC) #2
juberti
https://codereview.webrtc.org/1415313004/diff/20001/webrtc/p2p/base/turnport.cc File webrtc/p2p/base/turnport.cc (right): https://codereview.webrtc.org/1415313004/diff/20001/webrtc/p2p/base/turnport.cc#newcode1349 webrtc/p2p/base/turnport.cc:1349: port_->SignalCreatePermissionResult(port_, ext_addr_, code); Rather than using the signal, I ...
5 years, 1 month ago (2015-10-26 21:27:24 UTC) #4
juberti
On 2015/10/26 21:27:24, juberti wrote: > https://codereview.webrtc.org/1415313004/diff/20001/webrtc/p2p/base/turnport.cc > File webrtc/p2p/base/turnport.cc (right): > > https://codereview.webrtc.org/1415313004/diff/20001/webrtc/p2p/base/turnport.cc#newcode1349 > ...
5 years, 1 month ago (2015-10-26 21:43:50 UTC) #5
pthatcher1
On 2015/10/26 21:43:50, juberti wrote: > On 2015/10/26 21:27:24, juberti wrote: > > > https://codereview.webrtc.org/1415313004/diff/20001/webrtc/p2p/base/turnport.cc ...
5 years, 1 month ago (2015-10-29 14:17:09 UTC) #6
Taylor Brandstetter
Alright, I got rid of the TurnConnection class. Just to note: the purpose of my ...
5 years, 1 month ago (2015-11-11 00:17:54 UTC) #7
juberti
https://codereview.webrtc.org/1415313004/diff/40001/webrtc/p2p/base/port.h File webrtc/p2p/base/port.h (right): https://codereview.webrtc.org/1415313004/diff/40001/webrtc/p2p/base/port.h#newcode629 webrtc/p2p/base/port.h:629: friend class TurnEntry; Hmm... I don't think TurnEntry should ...
5 years, 1 month ago (2015-11-23 06:47:05 UTC) #8
Taylor Brandstetter
https://codereview.webrtc.org/1415313004/diff/40001/webrtc/p2p/base/port.h File webrtc/p2p/base/port.h (right): https://codereview.webrtc.org/1415313004/diff/40001/webrtc/p2p/base/port.h#newcode629 webrtc/p2p/base/port.h:629: friend class TurnEntry; On 2015/11/23 06:47:05, juberti wrote: > ...
5 years ago (2015-11-23 19:20:18 UTC) #9
pthatcher1
https://codereview.webrtc.org/1415313004/diff/40001/webrtc/p2p/base/turnport.cc File webrtc/p2p/base/turnport.cc (right): https://codereview.webrtc.org/1415313004/diff/40001/webrtc/p2p/base/turnport.cc#newcode1350 webrtc/p2p/base/turnport.cc:1350: Connection* c = port_->GetConnection(ext_addr_); On 2015/11/23 19:20:18, Taylor Brandstetter ...
5 years ago (2015-11-23 23:57:21 UTC) #10
juberti
On 2015/11/23 23:57:21, pthatcher1 wrote: > https://codereview.webrtc.org/1415313004/diff/40001/webrtc/p2p/base/turnport.cc > File webrtc/p2p/base/turnport.cc (right): > > https://codereview.webrtc.org/1415313004/diff/40001/webrtc/p2p/base/turnport.cc#newcode1350 > ...
5 years ago (2015-11-24 00:11:26 UTC) #11
Taylor Brandstetter
Peter: I did what we talked about, fyi
5 years ago (2015-11-24 00:50:33 UTC) #12
juberti
lgtm - I see this parallels how we handle a binding error response.
5 years ago (2015-11-24 00:53:21 UTC) #13
pthatcher
lgtm https://codereview.webrtc.org/1415313004/diff/60001/webrtc/p2p/base/turnport.cc File webrtc/p2p/base/turnport.cc (right): https://codereview.webrtc.org/1415313004/diff/60001/webrtc/p2p/base/turnport.cc#newcode928 webrtc/p2p/base/turnport.cc:928: c->Destroy(); Why does this need to be friend ...
5 years ago (2015-11-24 17:56:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415313004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415313004/80001
5 years ago (2015-11-24 22:35:55 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/1952)
5 years ago (2015-11-24 22:40:37 UTC) #19
Taylor Brandstetter
Looks like you guys both LGTM'ed from @google.com accounts
5 years ago (2015-11-25 00:12:08 UTC) #20
juberti1
On 2015/11/25 00:12:08, Taylor Brandstetter wrote: > Looks like you guys both LGTM'ed from @google.com ...
5 years ago (2015-11-25 01:07:18 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415313004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415313004/80001
5 years ago (2015-11-25 16:58:45 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-11-25 17:00:12 UTC) #24
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/376e1235c7b602e86afe9f36eb81289e42643718 Cr-Commit-Position: refs/heads/master@{#10789}
5 years ago (2015-11-25 17:00:20 UTC) #25
pthatcher1
5 years ago (2015-11-25 23:09:32 UTC) #26
Message was sent while issue was closed.
lgtm

For good measure.

Powered by Google App Engine
This is Rietveld 408576698