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
notification: Fix memory leak of pending substreams (#296)
This PR fixes a subtle memory leak that can happen in the following
edge-case situation:
- connection is established and substream outbound is initiated with
remote peer
- the substream ID is tracked until the substream either completes
successfully or fails
- the connection is closed soon after, leading to no substream events
ever being generated
For this edge-cases, we need to remove the tracking of the substream ID
when the connection is reported as closed.
This has been detected after running a node for more than 2 days with
the following generic metrics PR:
- #294Closes: #295
cc @paritytech/networking
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
0 commit comments