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

Issue 2719183004: Avoid busy looping in case of send failure when probing. (Closed)

Created:
3 years, 9 months ago by philipel
Modified:
3 years, 9 months ago
Reviewers:
tommi, stefan-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhuangzesen_agora.io
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Avoid busy looping in case of send failure while probing. BUG=webrtc:7255 Review-Url: https://codereview.webrtc.org/2719183004 Cr-Commit-Position: refs/heads/master@{#16908} Committed: https://chromium.googlesource.com/external/webrtc/+/b61927c6879a21cd9b8085f3899fb1239458e969

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -3 lines) Patch
M webrtc/modules/pacing/paced_sender.h View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/pacing/paced_sender.cc View 3 chunks +7 lines, -3 lines 1 comment Download
M webrtc/modules/pacing/paced_sender_unittest.cc View 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
philipel
3 years, 9 months ago (2017-02-28 14:10:04 UTC) #2
stefan-webrtc
https://codereview.webrtc.org/2719183004/diff/1/webrtc/modules/pacing/paced_sender.cc File webrtc/modules/pacing/paced_sender.cc (right): https://codereview.webrtc.org/2719183004/diff/1/webrtc/modules/pacing/paced_sender.cc#newcode453 webrtc/modules/pacing/paced_sender.cc:453: probing_send_failure_ = bytes_sent == 0; Why do we fail ...
3 years, 9 months ago (2017-02-28 14:23:41 UTC) #6
tommi
lgtm
3 years, 9 months ago (2017-02-28 14:30:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2719183004/1
3 years, 9 months ago (2017-02-28 14:31:07 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/external/webrtc/+/b61927c6879a21cd9b8085f3899fb1239458e969
3 years, 9 months ago (2017-02-28 15:05:26 UTC) #12
mflodman
On 2017/02/28 15:05:26, commit-bot: I haz the power wrote: > Committed patchset #1 (id:1) as ...
3 years, 9 months ago (2017-02-28 18:14:31 UTC) #13
philipel
On 2017/02/28 18:14:31, mflodman wrote: > On 2017/02/28 15:05:26, commit-bot: I haz the power wrote: ...
3 years, 9 months ago (2017-03-01 09:23:53 UTC) #14
tommi
On 2017/03/01 09:23:53, philipel wrote: > On 2017/02/28 18:14:31, mflodman wrote: > > On 2017/02/28 ...
3 years, 9 months ago (2017-03-01 09:52:47 UTC) #15
mflodman
On 2017/03/01 09:52:47, tommi (webrtc) wrote: > On 2017/03/01 09:23:53, philipel wrote: > > On ...
3 years, 9 months ago (2017-03-01 16:53:05 UTC) #16
mflodman
On 2017/03/01 09:52:47, tommi (webrtc) wrote: > On 2017/03/01 09:23:53, philipel wrote: > > On ...
3 years, 9 months ago (2017-03-01 16:53:08 UTC) #17
stefan-webrtc
On 2017/03/01 16:53:08, mflodman wrote: > On 2017/03/01 09:52:47, tommi (webrtc) wrote: > > On ...
3 years, 9 months ago (2017-03-01 16:56:01 UTC) #18
tommi
On 2017/03/01 16:56:01, stefan-webrtc wrote: > On 2017/03/01 16:53:08, mflodman wrote: > > On 2017/03/01 ...
3 years, 9 months ago (2017-03-09 19:07:58 UTC) #19
stefan-webrtc
3 years, 9 months ago (2017-03-10 11:01:23 UTC) #20
Message was sent while issue was closed.
On 2017/03/09 19:07:58, tommi (webrtc) wrote:
> On 2017/03/01 16:56:01, stefan-webrtc wrote:
> > On 2017/03/01 16:53:08, mflodman wrote:
> > > On 2017/03/01 09:52:47, tommi (webrtc) wrote:
> > > > On 2017/03/01 09:23:53, philipel wrote:
> > > > > On 2017/02/28 18:14:31, mflodman wrote:
> > > > > > On 2017/02/28 15:05:26, commit-bot: I haz the power wrote:
> > > > > > > Committed patchset #1 (id:1) as
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
https://chromium.googlesource.com/external/webrtc/+/b61927c6879a21cd9b8085f38...
> > > > > > 
> > > > > > Reiterating Stefan's question,
> > > > > > Do we know why we get send errors for the probe? If not, I'd like a
> bug
> > > > filed
> > > > > > for that to make sure we follow up.
> > > > > 
> > > > > I am not sure if we ever fail to send while the network is up, but
> > assuming
> > > > that
> > > > > it can happen it would cause a busy loop. I have not seen an example
> where
> > > we
> > > > > actually fail to send.
> > > 
> > > Ok, my understanding was that this was a real issue caused by send
failures.
> > > 
> > > > 
> > > > Would it make sense to have histograms to report when it happens? (and
> > > possibly
> > > > an error code too)
> > > 
> > > Yes, something like that would probably be good.
> > > 
> > > Stefan,
> > > What do you think?
> > 
> > Can we instead try to remove the path where we failed to send? I have doubts
> of
> > whether it even can happen.
> 
> My email didn't make it to the cr, so sending again in case we could just add
a
> CHECK() instead of being uncertain:
> 
> "What we know is that we didn't handle it and no data on whether or not it
> actually happens. I'd prefer to know. If there's a way to know for sure, then
> that would be good. If you're sure Stefan, we could just RTC_CHECK that it
> doesn't and then we don't have to worry about error codes etc."

I'm not sure, but given how our sockets are implemented I believe there should
be no errors propagated back up through return values. I'll see if I can add a
CHECK.

Powered by Google App Engine
This is Rietveld 408576698