commit | a92ba289224ed9425bffe59edc41a0cc79292fb1 | [log] [tgz] |
---|---|---|
author | Tommi <tommi@webrtc.org> | Mon Oct 17 06:36:16 2022 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Oct 17 07:18:28 2022 |
tree | 149ebb2e0f2baf971f12bc6b93da0fe7ef6c62b5 | |
parent | 1b3f531da404c200da09f229799e827250347b60 [diff] |
[TurnPort] Fix error return value in TurnPort::SendTo While looking into chromium:1374310 I noticed that the function was returning 0 in a particular case. 0 isn't a valid return value as per this shortened snippet from connection.cc [1] specifically meant to catch this: int sent = port_->SendTo(...); if (sent <= 0) { RTC_DCHECK(sent < 0); error_ = port_->GetError(); ... [1] https://source.chromium.org/chromium/chromium/src/+/main:third_party/webrtc/p2p/base/connection.cc;l=1687 Also propagating the socket error value in case of failure. Bug: chromium:1374310 Change-Id: Ie00f60388d53d4127c1d419ab0352e0574044485 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/279282 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38408}
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.