-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Commit-Queue: Tommi <[email protected]> Cr-Commit-Position: refs/heads/master@{#34751}
- Loading branch information
Victor Boivie
authored and
WebRTC LUCI CQ
committed
Aug 13, 2021
1 parent
55a2f77
commit edfaaef
Showing
3 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters