You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix[bmqio]: return peerUri by value to eliminate data race (#1641)
Return `peerUri` by value instead of by const reference so the caller is not left holding an unprotected reference after the lock drops. This changes the base `Channel` interface and all four implementations. In `ResolvingChannelFactory_Channel`, the constructor previously took the address of the return value for the `AtomicPointer` pattern, so a stored copy is used instead. Also fixes two latent `StringRef` dangles that only worked because `peerUri` returned a reference to a stable member.
Signed-off-by: Srinath Satuluri <satulurisrinath@gmail.com>
0 commit comments