Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Support for OpenSslEngine with no finalizer
Motivation:

Custom SslContext should be retained on init.

Modification:

Retain custom SslContext.

Result:

Externally managed SslContext refcount is managed correctly.
  • Loading branch information
johnou committed Feb 5, 2020
commit 22502d7769e28d5a75a9351c1d2a4c86a1f808bd
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class DefaultSslEngineFactory extends SslEngineFactoryBase {

private SslContext buildSslContext(AsyncHttpClientConfig config) throws SSLException {
if (config.getSslContext() != null) {
ReferenceCountUtil.retain(config.getSslContext());
return config.getSslContext();
}

Expand Down