e448a3fb54eec298d9113b2bd85e71e2fe69bb77

Call DataChannelObserver::OnBufferedAmountChange on each successful send. Previously, the observer would get notified of buffered amount changes only when queued send data is consumed. Data gets queued only if it cannot be sent right away. According to the WebRTC standard[1], bufferedamount should be increased before each sent and decreased after each successful sent. Update implementation to be standard compliant. Design doc: http://doc/1lorHBn-GMn5U0T0RQANxrsW0pXhw8XGZM-xZyVUOW90 [1] https://w3c.github.io/webrtc-pc/#dom-datachannel-bufferedamount Bug: chromium:878682 Change-Id: Ife009d30c4a18dced9a54cf600a445bb1f02561d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/123237 Commit-Queue: Marina Ciocea <marinaciocea@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27057}
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.
Development
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.
More info
- Official web site: http://www.webrtc.org
- Master source code repo: https://webrtc.googlesource.com/src
- Samples and reference apps: https://github.com/webrtc
- Mailing list: http://groups.google.com/group/discuss-webrtc
- Continuous build: http://build.chromium.org/p/client.webrtc
- Coding style guide
- Code of conduct
Description
Languages
C++
88.6%
C
3.3%
Java
3%
Objective-C++
1.9%
Python
1.9%
Other
1%