pekko/akka-remote-tests/src
Patrik Nordwall 6072f6d263
Fix memory leak of restarting Artery outbound stream, #28390 (#28478)
* Fix memory leak of restarting Artery outbound stream, #28390 (#28407)

* If the handshake doesn't complete the Promise in AssociationState was
  not completed and each new restarted stream added future callback to
  it OutboundHandshake stage. Those references are kept in the promise
  and therefore old OutboundHandshake (and probably entire stream) couldn't
  be garbage collected.
* Using own notification mechanism to have control of listener deregistration
  from postStop instead of using Promise/Future.
* Trying to create new Promise after failure/restart would be difficult due
  to that the same AssociationState Promise is accessed from several outbound
  streams, all possibly restarted individually. Therefore easier to cleanup
  from postStop.

(cherry picked from commit 3b7e6095df25d2551c122944f08f869255fb20ca)

* move mima filter to 2.6.1.backwards.excludes
2020-01-20 15:33:44 +01:00
..
multi-jvm/scala/akka Fix memory leak of restarting Artery outbound stream, #28390 (#28478) 2020-01-20 15:33:44 +01:00
test Update to ScalaTest 3.1.0, fix #28289. 2020-01-11 15:15:10 +03:00