commit | edfaaef086ccff2dbff29d64c9a8d9f633637c57 | [log] [tgz] |
---|---|---|
author | Victor Boivie <boivie@webrtc.org> | Wed Aug 11 17:35:11 2021 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Aug 13 10:30:29 2021 |
tree | c1f6479112749d714f052650c980d584fa1b5d2e | |
parent | 55a2f770a658779f0fd93ec04144ea783891d133 [diff] |
Propagate socket write errors for DtlsTransport The UDP sockets in WebRTC are non-blocking, and when writing too much to them so that their send buffer becomes exhausted, they will return EAGAIN or EWOULDBLOCK, which indicates that the client will need to retry a bit later. Media packets are generally sent by the pacer, which generally avoids this exhaustion, but for SCTP which has a congestion control algorithm quite similar to TCP, it may overshoot the amount of data it writes. If the SCTP library can be notified when writing fails, it can stop writing for a while until the socket recovers, which will result in less overshooting and fewer lost packets (possibly even none). But for the SCTP library to be able to know this, errors must be propagated, which they weren't with the argument that packets may get lost anyway. Bug: webrtc:12943 Change-Id: I9244580abf0d48ff810da30a23f995d12be623ed Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/228439 Reviewed-by: Tommi <tommi@webrtc.org> Commit-Queue: Tommi <tommi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34751}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.