forked from netty/netty
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[netty#4958]: OpenSslContext retains native resources that get released by the Garbage Collector via object finalization. This works fine for traditonal SSL deployments with static working sets of SslContext(s). We intend to load large sets of [Open]SslContext(s) on a per connection basis. Having OpenSslContext implement the ReferenceCounted interface would facilitate efficient sharing and timely relase of all native resources once all client disconnected that used the same context. Modifications Let OpenSslContext implement the ReferenceCounted and delegate all calls to an inner AbstractReferenceCounted field that calls OpenSslContext's destroy() method once the reference count reaches 0. Result It's possible to release OpenSslContext's native resources as soon as it's no longer in use.
- Loading branch information
Roger Kapsi
committed
Mar 11, 2016
1 parent
6536c7c
commit 04ded69
Showing
1 changed file
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters