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

Issue 1688703002: Prevent busy-looping PacedSender on small packets. (Closed)

Created:
4 years, 10 months ago by pbos-webrtc
Modified:
4 years, 10 months ago
Reviewers:
stefan-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhuangzesen_agora.io, stefan-webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Prevent busy-looping PacedSender on small packets. Skip accounting for small packets and suspend the prober if no large-enough packets have been sent for some time. This especially seems to have triggered in audio-only calls where all packets are too small, making TimeUntilNextProbe return 0 forever, causing the module process thread to wake up forever. BUG=webrtc:5506 R=stefan@webrtc.org Committed: https://crrev.com/0453ef857f900dd0f230d3e654b54256512af64f Cr-Commit-Position: refs/heads/master@{#11634}

Patch Set 1 #

Total comments: 9

Patch Set 2 : only initialize the prober if we have something large enough to probe with #

Patch Set 3 : review + fixes #

Patch Set 4 : rebase #

Total comments: 6

Patch Set 5 : remove packet_size_last_send_ = 0 and rename constant #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -10 lines) Patch
M webrtc/modules/pacing/bitrate_prober.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M webrtc/modules/pacing/bitrate_prober.cc View 1 2 3 4 4 chunks +23 lines, -5 lines 0 comments Download
M webrtc/modules/pacing/bitrate_prober_unittest.cc View 1 2 2 chunks +41 lines, -1 line 0 comments Download
M webrtc/modules/pacing/paced_sender.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
pbos-webrtc
PTAL, woo!
4 years, 10 months ago (2016-02-10 10:40:21 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1688703002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1688703002/1
4 years, 10 months ago (2016-02-10 10:40:32 UTC) #3
stefan-webrtc
https://codereview.webrtc.org/1688703002/diff/1/webrtc/modules/pacing/bitrate_prober.cc File webrtc/modules/pacing/bitrate_prober.cc (right): https://codereview.webrtc.org/1688703002/diff/1/webrtc/modules/pacing/bitrate_prober.cc#newcode87 webrtc/modules/pacing/bitrate_prober.cc:87: // No probe started, or waiting for next probe. ...
4 years, 10 months ago (2016-02-10 10:56:20 UTC) #4
pbos-webrtc
only initialize the prober if we have something large enough to probe with
4 years, 10 months ago (2016-02-10 11:03:38 UTC) #5
pbos-webrtc
PTAL https://codereview.webrtc.org/1688703002/diff/1/webrtc/modules/pacing/bitrate_prober.cc File webrtc/modules/pacing/bitrate_prober.cc (right): https://codereview.webrtc.org/1688703002/diff/1/webrtc/modules/pacing/bitrate_prober.cc#newcode87 webrtc/modules/pacing/bitrate_prober.cc:87: // No probe started, or waiting for next ...
4 years, 10 months ago (2016-02-10 13:19:08 UTC) #6
pbos-webrtc
review + fixes
4 years, 10 months ago (2016-02-10 13:19:26 UTC) #7
pbos-webrtc
rebase
4 years, 10 months ago (2016-02-15 17:02:01 UTC) #8
stefan-webrtc
https://codereview.webrtc.org/1688703002/diff/60001/webrtc/modules/pacing/bitrate_prober.cc File webrtc/modules/pacing/bitrate_prober.cc (right): https://codereview.webrtc.org/1688703002/diff/60001/webrtc/modules/pacing/bitrate_prober.cc#newcode87 webrtc/modules/pacing/bitrate_prober.cc:87: packet_size_last_send_ = 0; Is this needed? In case we ...
4 years, 10 months ago (2016-02-16 13:50:26 UTC) #9
pbos-webrtc
PTAL https://codereview.webrtc.org/1688703002/diff/60001/webrtc/modules/pacing/bitrate_prober.cc File webrtc/modules/pacing/bitrate_prober.cc (right): https://codereview.webrtc.org/1688703002/diff/60001/webrtc/modules/pacing/bitrate_prober.cc#newcode87 webrtc/modules/pacing/bitrate_prober.cc:87: packet_size_last_send_ = 0; On 2016/02/16 13:50:25, stefan-webrtc (holmer) ...
4 years, 10 months ago (2016-02-16 13:57:20 UTC) #10
pbos-webrtc
remove packet_size_last_send_ = 0 and rename constant
4 years, 10 months ago (2016-02-16 13:57:39 UTC) #11
stefan-webrtc
lgtm
4 years, 10 months ago (2016-02-16 14:56:26 UTC) #12
pbos-webrtc
Committed patchset #5 (id:80001) manually as 0453ef857f900dd0f230d3e654b54256512af64f (presubmit successful).
4 years, 10 months ago (2016-02-16 15:23:22 UTC) #14
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 15:23:24 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0453ef857f900dd0f230d3e654b54256512af64f
Cr-Commit-Position: refs/heads/master@{#11634}

Powered by Google App Engine
This is Rietveld 408576698