Skip to content

Commit 2a6bb31

Browse files
committed
Fix secure pool logic.
1 parent 021aa79 commit 2a6bb31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/grizzly/src/main/java/org/asynchttpclient/providers/grizzly/ConnectionManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public void onClosed(Connection connection, CloseType closeType) throws IOExcept
429429
*/
430430
public boolean offer(String uri, Connection connection) {
431431

432-
if (cacheSSLConnections && Utils.isSecure(uri)) {
432+
if (Utils.isSecure(uri) && !cacheSSLConnections) {
433433
return false;
434434
}
435435

0 commit comments

Comments
 (0)