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

Issue 1737493004: Keep on sending stun binding requests on zero-cost networks. (Closed)

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

Description

Keep on sending stun binding requests on zero-cost networks. This is useful to keep the NAT binding alive on backup connections. BUG= Committed: https://crrev.com/e2af9ef638408d8ec0a9d0649f8ea86384fa4816 Cr-Commit-Position: refs/heads/master@{#11862}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : Added tests, chaneged to 64bit lifetime. #

Total comments: 7

Patch Set 5 : Renaming a few methods. #

Patch Set 6 : Change back to uint32_t timestamp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -31 lines) Patch
M webrtc/base/network.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/p2p/base/stunport.h View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M webrtc/p2p/base/stunport.cc View 1 2 3 4 5 5 chunks +38 lines, -24 lines 0 comments Download
M webrtc/p2p/base/stunport_unittest.cc View 1 2 3 4 6 chunks +75 lines, -7 lines 0 comments Download
M webrtc/p2p/base/stunrequest.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/p2p/base/stunrequest.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (24 generated)
honghaiz3
4 years, 10 months ago (2016-02-25 22:06:26 UTC) #3
juberti2
https://codereview.webrtc.org/1737493004/diff/20001/webrtc/p2p/base/stunport.cc File webrtc/p2p/base/stunport.cc (right): https://codereview.webrtc.org/1737493004/diff/20001/webrtc/p2p/base/stunport.cc#newcode403 webrtc/p2p/base/stunport.cc:403: uint32_t deadline = (network_cost() == 0) I don't like ...
4 years, 10 months ago (2016-02-26 01:53:41 UTC) #6
honghaiz3
https://codereview.webrtc.org/1737493004/diff/20001/webrtc/p2p/base/stunport.cc File webrtc/p2p/base/stunport.cc (right): https://codereview.webrtc.org/1737493004/diff/20001/webrtc/p2p/base/stunport.cc#newcode403 webrtc/p2p/base/stunport.cc:403: uint32_t deadline = (network_cost() == 0) On 2016/02/26 01:53:41, ...
4 years, 10 months ago (2016-02-26 18:46:57 UTC) #9
pthatcher1
Mostly readability stuff. Are you going to add unit tests? https://codereview.webrtc.org/1737493004/diff/80001/webrtc/p2p/base/stunport.cc File webrtc/p2p/base/stunport.cc (right): https://codereview.webrtc.org/1737493004/diff/80001/webrtc/p2p/base/stunport.cc#newcode28 ...
4 years, 10 months ago (2016-02-26 22:33:52 UTC) #10
honghaiz3
As the logic heavily depends on the realtime clock, it is hard to directly test ...
4 years, 9 months ago (2016-02-29 19:34:11 UTC) #13
pthatcher1
I think we could add two unit tests: 1. Test that when the network cost ...
4 years, 9 months ago (2016-03-01 22:59:05 UTC) #14
honghaiz3
Added tests and made some changes for the tests, also changed the lifetime and start_time ...
4 years, 9 months ago (2016-03-02 18:48:00 UTC) #16
honghaiz3
https://codereview.webrtc.org/1737493004/diff/180001/webrtc/p2p/base/stunport.cc File webrtc/p2p/base/stunport.cc (right): https://codereview.webrtc.org/1737493004/diff/180001/webrtc/p2p/base/stunport.cc#newcode109 webrtc/p2p/base/stunport.cc:109: return lifetime_us_ < 0 || now <= start_time_us_ + ...
4 years, 9 months ago (2016-03-02 20:20:41 UTC) #17
pthatcher1
https://codereview.webrtc.org/1737493004/diff/180001/webrtc/p2p/base/stunport.cc File webrtc/p2p/base/stunport.cc (right): https://codereview.webrtc.org/1737493004/diff/180001/webrtc/p2p/base/stunport.cc#newcode415 webrtc/p2p/base/stunport.cc:415: // in the StunBindingRequest is in microseconds. Can we ...
4 years, 9 months ago (2016-03-02 20:25:59 UTC) #18
honghaiz3
Thanks! PTAL. https://codereview.webrtc.org/1737493004/diff/180001/webrtc/p2p/base/stunport.cc File webrtc/p2p/base/stunport.cc (right): https://codereview.webrtc.org/1737493004/diff/180001/webrtc/p2p/base/stunport.cc#newcode415 webrtc/p2p/base/stunport.cc:415: // in the StunBindingRequest is in microseconds. ...
4 years, 9 months ago (2016-03-02 23:22:51 UTC) #19
honghaiz3
Change to 32-bit time for now. Leave the time-value fix at a separate CL.
4 years, 9 months ago (2016-03-03 00:03:45 UTC) #21
pthatcher1
lgtm
4 years, 9 months ago (2016-03-03 00:57:28 UTC) #22
honghaiz3
As I think more about it, it is OK to use TimeDiff even with the ...
4 years, 9 months ago (2016-03-03 01:05:19 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737493004/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737493004/320001
4 years, 9 months ago (2016-03-03 01:07:25 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: win_compile_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_compile_dbg/builds/3506) win_drmemory_light on tryserver.webrtc (JOB_FAILED, ...
4 years, 9 months ago (2016-03-03 01:16:07 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737493004/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737493004/340001
4 years, 9 months ago (2016-03-03 01:24:06 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) linux_baremetal on ...
4 years, 9 months ago (2016-03-03 03:24:59 UTC) #38
juberti2
lgtm
4 years, 9 months ago (2016-03-03 05:41:52 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737493004/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737493004/340001
4 years, 9 months ago (2016-03-03 16:26:11 UTC) #41
commit-bot: I haz the power
Committed patchset #6 (id:340001)
4 years, 9 months ago (2016-03-03 16:27:51 UTC) #43
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 16:28:03 UTC) #45
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e2af9ef638408d8ec0a9d0649f8ea86384fa4816
Cr-Commit-Position: refs/heads/master@{#11862}

Powered by Google App Engine
This is Rietveld 408576698