commit | c4f3919fdd2cca9f39d6fcd52066ad8ac8aff9fe | [log] [tgz] |
---|---|---|
author | Jonas Oreland <jonaso@webrtc.org> | Wed Oct 11 08:02:24 2023 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Oct 11 10:16:15 2023 |
tree | d3a222e5267e2b805f9f4823f8ffbb066ead4ca7 | |
parent | ddd6b695728d984894df0500b13cde162a4487db [diff] |
Add RTC_DCHECK that port_ is always valid in Connection. This patch is a follow up to https://webrtc-review.googlesource.com/c/src/+/260943 which made it possible to destroy a Port before a Connection (on that port). This patch "reverses" this, by adding RTC_DHECK, and fixes the Port destructor to release the Connections before invalidating the WeakPtr<>. Currently there are no known occurrences where a Connection is destroyed after it's Port is. But prior to the change in Port destructor, a bunch unit tests failed on the newly added DCHECKs. In addition: a) modify StunReqquestManager to remove entry from hash before calling callback. This makes it possible for callback to modify (clear) hash. b) clear pending requests when disconnecting from port, "should not be needed", depends on a) c) add a getter for pending_delete() Bug: webrtc:13892, webrtc:13865 Change-Id: I5d18f2db8d93b7cc25d18bd620063589ee9257c9 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/322861 Reviewed-by: Per Kjellander <perkj@webrtc.org> Commit-Queue: Jonas Oreland <jonaso@webrtc.org> Cr-Commit-Position: refs/heads/main@{#40907}
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.