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

Issue 1231913003: Add methods to set the ICE connection receiving_timeout values. (Closed)

Created:
5 years, 5 months ago by honghaiz3
Modified:
5 years, 4 months ago
Reviewers:
pthatcher1
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, rwolff_gocast.it, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom
Base URL:
https://chromium.googlesource.com/external/webrtc@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add methods to set the ICE connection receiving_timeout values. BUG= Committed: https://crrev.com/900996290c996193ac3e418f315354fd2bd0ea8a Cr-Commit-Position: refs/heads/master@{#9572}

Patch Set 1 : Set the timeout value #

Total comments: 6

Patch Set 2 : Address comments and add tests #

Total comments: 6

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -24 lines) Patch
M talk/app/webrtc/java/jni/peerconnection_jni.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M talk/app/webrtc/java/src/org/webrtc/PeerConnection.java View 1 chunk +2 lines, -0 lines 0 comments Download
M talk/app/webrtc/peerconnection.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M talk/app/webrtc/peerconnection.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M talk/app/webrtc/peerconnectioninterface.h View 1 chunk +2 lines, -0 lines 0 comments Download
M talk/app/webrtc/peerconnectionproxy.h View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/p2p/base/dtlstransportchannel.h View 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/p2p/base/fakesession.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.cc View 1 1 chunk +6 lines, -1 line 0 comments Download
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/rawtransportchannel.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/p2p/base/session.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M webrtc/p2p/base/session.cc View 1 2 3 chunks +18 lines, -6 lines 0 comments Download
A webrtc/p2p/base/session_unittest.cc View 1 2 1 chunk +100 lines, -0 lines 0 comments Download
M webrtc/p2p/base/transport.h View 1 3 chunks +5 lines, -0 lines 0 comments Download
M webrtc/p2p/base/transport.cc View 1 2 3 chunks +30 lines, -15 lines 0 comments Download
M webrtc/p2p/base/transportchannelimpl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/p2p/p2p_tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (11 generated)
honghaiz3
5 years, 5 months ago (2015-07-09 21:35:29 UTC) #5
pthatcher1
We might want some unit tests for the scenario of: 1. Set the value. 2. ...
5 years, 5 months ago (2015-07-09 22:21:41 UTC) #7
honghaiz3
Thanks! PTAL.
5 years, 5 months ago (2015-07-10 20:22:25 UTC) #10
pthatcher1
lgtm, if you address the three remaining things https://codereview.webrtc.org/1231913003/diff/100002/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1231913003/diff/100002/webrtc/p2p/base/p2ptransportchannel.cc#newcode364 webrtc/p2p/base/p2ptransportchannel.cc:364: return; ...
5 years, 5 months ago (2015-07-11 00:24:54 UTC) #11
honghaiz3
On 2015/07/11 00:24:54, pthatcher1 wrote: > lgtm, if you address the three remaining things > ...
5 years, 5 months ago (2015-07-11 02:59:17 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/1231913003/130001
5 years, 5 months ago (2015-07-11 03:00:19 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-11 05:15:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1231913003/130001
5 years, 5 months ago (2015-07-13 18:35:05 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:130001)
5 years, 5 months ago (2015-07-13 19:19:40 UTC) #20
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/900996290c996193ac3e418f315354fd2bd0ea8a Cr-Commit-Position: refs/heads/master@{#9572}
5 years, 5 months ago (2015-07-13 19:19:52 UTC) #21
honghaiz3
5 years, 4 months ago (2015-08-05 23:57:39 UTC) #22
Message was sent while issue was closed.
Publishing some draft responses that should have been sent earlier.

https://codereview.webrtc.org/1231913003/diff/50001/talk/app/webrtc/webrtcses...
File talk/app/webrtc/webrtcsession.cc (right):

https://codereview.webrtc.org/1231913003/diff/50001/talk/app/webrtc/webrtcses...
talk/app/webrtc/webrtcsession.cc:1439:
transport->SetChannelReceivingTimeout(timeout_ms);
On 2015/07/09 22:21:41, pthatcher1 wrote:
> We should pass down the value to each Transport even if it doesn't have
> Channels, and then each Transport needs to remember it and apply it to each
new
> TransportChannel that it creates.

Done.

https://codereview.webrtc.org/1231913003/diff/50001/talk/app/webrtc/webrtcses...
talk/app/webrtc/webrtcsession.cc:1441: }
On 2015/07/09 22:21:41, pthatcher1 wrote:
> I think we need to store the value and then apply it to each Transport that we
> create when we create them.  Such logic probably belongs in BaseSession, not
> WebRtcSession.  It would be better if we already had the TransportController
> class instead of BaseSession, but BaseSession should work for now.

Done.

https://codereview.webrtc.org/1231913003/diff/50001/webrtc/p2p/base/transport.cc
File webrtc/p2p/base/transport.cc (right):

https://codereview.webrtc.org/1231913003/diff/50001/webrtc/p2p/base/transport...
webrtc/p2p/base/transport.cc:186: }
On 2015/07/09 22:21:41, pthatcher1 wrote:
> The Transport needs to remember the value and apply it to each Channel that is
> created after the value is set.

Done.

https://codereview.webrtc.org/1231913003/diff/100002/webrtc/p2p/base/p2ptrans...
File webrtc/p2p/base/p2ptransportchannel.cc (right):

https://codereview.webrtc.org/1231913003/diff/100002/webrtc/p2p/base/p2ptrans...
webrtc/p2p/base/p2ptransportchannel.cc:364: return;
On 2015/07/11 00:24:53, pthatcher1 wrote:
> At least log a warning.
This also happens in the default case where users have not set the receiving
timeout. 
So better not log anything.

https://codereview.webrtc.org/1231913003/diff/100002/webrtc/p2p/base/session_...
File webrtc/p2p/base/session_unittest.cc (right):

https://codereview.webrtc.org/1231913003/diff/100002/webrtc/p2p/base/session_...
webrtc/p2p/base/session_unittest.cc:58: false)) {}
On 2015/07/11 00:24:54, pthatcher1 wrote:
> Can you run "git cl format"?  This format looks kind of weird to me.

Done. This also fixed the formatting of a few other files in this CL.

https://codereview.webrtc.org/1231913003/diff/100002/webrtc/p2p/p2p_tests.gypi
File webrtc/p2p/p2p_tests.gypi (right):

https://codereview.webrtc.org/1231913003/diff/100002/webrtc/p2p/p2p_tests.gyp...
webrtc/p2p/p2p_tests.gypi:24: 'base/session_unittest.cc',
On 2015/07/11 00:24:54, pthatcher1 wrote:
> You may need to add to the BUILD.gn file as well to not break the GN build
bots.

I looked other files. It seems that BUILD.gn does not contains unittest files.
For example, I do not see relayserver_unittest showed anywhere else.

Powered by Google App Engine
This is Rietveld 408576698