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
Issue description:
Streams Callbacks: Clean up observers, avoid having dangling observers.
Description:
The Subject-Observer pattern is used for StreamCallbacks. The codec stream object is the subject in this case, and the observers can include the Envoy's ActiveStream level object. Currently, the ActiveStream observer doesn't remove itself from observing codec level stream. Moreover, there are cases e.g. local reply where the subject itself might be destroyed before the ActiveStream object, leaving it with a dangling reference to the codec level stream.
We should clean this up such that when the StreamCallbackHelper is destroyed, it should have no observers. I think it's only a matter of time before this bites us.
Activity