Java Code Examples for org.apache.tomcat.jni.SSLContext#free()
The following examples show how to use
org.apache.tomcat.jni.SSLContext#free() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OpenSSLContext.java From Tomcat8-Source-Read with MIT License | 5 votes |
@Override public synchronized void destroy() { // Guard against multiple destroyPools() calls triggered by construction exception and finalize() later if (aprPoolDestroyed.compareAndSet(0, 1)) { if (ctx != 0) { SSLContext.free(ctx); } if (cctx != 0) { SSLConf.free(cctx); } if (aprPool != 0) { Pool.destroy(aprPool); } } }
Example 2
Source File: OpenSslContext.java From netty4.0.27Learn with Apache License 2.0 | 5 votes |
@Override @SuppressWarnings("FinalizeDeclaration") protected final void finalize() throws Throwable { super.finalize(); synchronized (OpenSslContext.class) { if (ctx != 0) { SSLContext.free(ctx); } } destroyPools(); }