GitHub user rovarga opened a pull request:
https://github.com/apache/mina-sshd/pull/67
[SSHD-846] Allow KeyPairGenerators to be garbage-collected
Since we do not use the KeyPairGenerator once we have generated the
keypair, make sure we remove our reference so it can be garbage-collected. With
Bouncy Castle that translates to around ~34KiB memory savings per session.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rovarga/mina-sshd dh-keygen
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/mina-sshd/pull/67.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #67
----
commit 90e4ebd11295a2164f60bc7a4c4b2fce68e35292
Author: Robert Varga <robert.varga@...>
Date: 2018-10-01T17:44:09Z
[SSHD-846] Allow KeyPairGenerators to be garbage-collected
----
---