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

Issue 1406423008: Stop a session when a new connection becomes writable. (Closed)

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

Description

Stop a session when a new connection becomes writable. We cannot do it at the end of sorting because it may stop a session too early. Also remove was_writable_, which is not useful. BUG=webrtc:5119 Committed: https://crrev.com/9b66957b4f7dfe40c17eed597826b3ed0faf5439 Cr-Commit-Position: refs/heads/master@{#10511}

Patch Set 1 : #

Total comments: 10

Patch Set 2 : #

Patch Set 3 : Merge and changed variable name #

Patch Set 4 : Removing the state variable has_stopped_sessions_ #

Total comments: 8

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -13 lines) Patch
M webrtc/p2p/base/p2ptransportchannel.h View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.cc View 1 2 3 4 5 chunks +20 lines, -10 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
honghaiz3
5 years, 2 months ago (2015-10-24 00:25:09 UTC) #4
pthatcher1
https://codereview.webrtc.org/1406423008/diff/40001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1406423008/diff/40001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1074 webrtc/p2p/base/p2ptransportchannel.cc:1074: void P2PTransportChannel::MaybeStopSessions() { Should be MaybeStopPortAllocatorSessions https://codereview.webrtc.org/1406423008/diff/40001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1078 webrtc/p2p/base/p2ptransportchannel.cc:1078: is_getting_ports_ ...
5 years, 2 months ago (2015-10-24 00:39:04 UTC) #6
honghaiz3
PTAL. https://codereview.webrtc.org/1406423008/diff/40001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1406423008/diff/40001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1074 webrtc/p2p/base/p2ptransportchannel.cc:1074: void P2PTransportChannel::MaybeStopSessions() { On 2015/10/24 00:39:04, pthatcher1 wrote: ...
5 years, 1 month ago (2015-10-26 16:47:46 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1406423008/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1406423008/60001
5 years, 1 month ago (2015-10-26 22:13:16 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_clang_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_clang_dbg/builds/8441) ios_rel on ...
5 years, 1 month ago (2015-10-26 22:13:58 UTC) #11
pthatcher1
https://codereview.webrtc.org/1406423008/diff/40001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1406423008/diff/40001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1078 webrtc/p2p/base/p2ptransportchannel.cc:1078: is_getting_ports_ = false; On 2015/10/26 16:47:46, honghaiz3 wrote: > ...
5 years, 1 month ago (2015-10-27 07:24:04 UTC) #12
honghaiz3
https://codereview.webrtc.org/1406423008/diff/40001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1406423008/diff/40001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1078 webrtc/p2p/base/p2ptransportchannel.cc:1078: is_getting_ports_ = false; On 2015/10/27 07:24:04, pthatcher1 wrote: > ...
5 years, 1 month ago (2015-10-27 16:59:42 UTC) #14
honghaiz3
On 2015/10/27 16:59:42, honghaiz3 wrote: > https://codereview.webrtc.org/1406423008/diff/40001/webrtc/p2p/base/p2ptransportchannel.cc > File webrtc/p2p/base/p2ptransportchannel.cc (right): > > https://codereview.webrtc.org/1406423008/diff/40001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1078 > ...
5 years, 1 month ago (2015-10-27 17:29:17 UTC) #15
honghaiz3
Note, both patch 3 and 4 should work. Patch 3 added a variable to check ...
5 years, 1 month ago (2015-10-29 23:43:10 UTC) #18
pthatcher1
lgtm, with comment nits https://codereview.webrtc.org/1406423008/diff/160001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1406423008/diff/160001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1296 webrtc/p2p/base/p2ptransportchannel.cc:1296: // May stop the session ...
5 years, 1 month ago (2015-11-04 15:06:14 UTC) #19
honghaiz3
Thanks! https://codereview.webrtc.org/1406423008/diff/160001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1406423008/diff/160001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1296 webrtc/p2p/base/p2ptransportchannel.cc:1296: // May stop the session after at least ...
5 years, 1 month ago (2015-11-04 18:27:13 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1406423008/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1406423008/180001
5 years, 1 month ago (2015-11-04 18:27:40 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:180001)
5 years, 1 month ago (2015-11-04 20:07:48 UTC) #24
commit-bot: I haz the power
5 years, 1 month ago (2015-11-04 20:07:58 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9b66957b4f7dfe40c17eed597826b3ed0faf5439
Cr-Commit-Position: refs/heads/master@{#10511}

Powered by Google App Engine
This is Rietveld 408576698