Skip to content

Commit

Permalink
Fixed race condition
Browse files Browse the repository at this point in the history
Fixed race condition, see:
 eclipse-ee4j#5358
  • Loading branch information
dtbaum authored Jul 7, 2023
1 parent f0d2ff2 commit 5ae627e
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,7 @@ protected void secureConnection(final JerseyClient client, final HttpURLConnecti
if (verifier != null) {
suc.setHostnameVerifier(verifier);
}

if (DEFAULT_SSL_SOCKET_FACTORY.get() == suc.getSSLSocketFactory()) {
// indicates that the custom socket factory was not set
suc.setSSLSocketFactory(sslSocketFactory.get());
}
suc.setSSLSocketFactory(sslSocketFactory.get());
}
}

Expand Down

0 comments on commit 5ae627e

Please # to comment.