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

Issue 2192963002: Don't stop sending media on EWOULDBLOCK (Closed)

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

Description

Don't stop sending media on EWOULDBLOCK This change makes WebRTC no longer stop sending video when we receive an EWOULDBLOCK error from the operating system. This was previously causing calls on a slow link (where the first hop is slow) to rapidly oscillate between starting and stopping video. We still do need to stop sending packets if there is no known good connection we can use for that. We used to generate a synthetic EWOULDBLOCK error in that case. This CL replaces it with a different code (ENOTCONN); EWOULDBLOCK no longer stops the stream but ENOTCONN does. I've updated all the places where we seemed to be generating EWOULDBLOCK for reasons other than some buffer been full; please give it a thorough look in case I missed something. R=pthatcher@webrtc.org Committed: https://crrev.com/c309e0e3eaa90411ffedd83f50313b8b9d9826b5 Cr-Commit-Position: refs/heads/master@{#13566}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Don't stop sending media on EWOULDBLOCK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -12 lines) Patch
M webrtc/base/openssladapter.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/p2p/base/port_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/p2p/base/relayport.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/tcpport.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/turnport.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/pc/channel.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
pthatcher1
lgtm https://codereview.webrtc.org/2192963002/diff/1/webrtc/pc/channel.cc File webrtc/pc/channel.cc (right): https://codereview.webrtc.org/2192963002/diff/1/webrtc/pc/channel.cc#newcode762 webrtc/pc/channel.cc:762: LOG(LS_WARNING) << "Got ENOTCONN from socket."; "from socket" ...
4 years, 4 months ago (2016-07-28 20:27:50 UTC) #2
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/2192963002/20001
4 years, 4 months ago (2016-07-28 23:59:32 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_arm64_rel/builds/9650)
4 years, 4 months ago (2016-07-29 00:09:54 UTC) #7
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/c309e0e3eaa90411ffedd83f50313b8b9d9826b5 Cr-Commit-Position: refs/heads/master@{#13566}
4 years, 4 months ago (2016-07-29 00:15:35 UTC) #10
skvlad
4 years, 4 months ago (2016-07-29 00:15:35 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
c309e0e3eaa90411ffedd83f50313b8b9d9826b5 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698