I noticed that our gerrit 2.9 server with LDAP authentication is eagerly leaking LDAP connections and threads, I investigated and see that this was a known bug fixed in 2.10 see [1]. I also verified that the problem is quite severe since it leaks one thread with any LDAP authentication, and forcing us to restart quite often the gerrit server to reclaim resources.
We can't still update to 2.10 or later, and this is the only big problem we met with stable 2.9, thus I cherry-picked this change [2]
so that we can keep in using it without additional problems.
Can this be merged by someone on the stable 2.9?