DescriptionDon'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 #
Messages
Total messages: 11 (6 generated)
|