Closed achingbrain closed 2 years ago
In order to abort in-progress dials and not leak memory, the abort signal must be passed to the upgrader in order for it to be passed on to mss and noise.
Refs: https://github.com/libp2p/js-libp2p/pull/1072
This is the wrong fix, see explanation in https://github.com/libp2p/js-libp2p/pull/1072#issuecomment-1000844078 - proper fix here: https://github.com/alanshaw/abortable-iterator/pull/15
In order to abort in-progress dials and not leak memory, the abort signal must be passed to the upgrader in order for it to be passed on to mss and noise.
Refs: https://github.com/libp2p/js-libp2p/pull/1072