Skip to content

Commit e2504e1

Browse files
committed
add comment for clarification
1 parent ab1065a commit e2504e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zookeeper-server/src/main/java/org/apache/zookeeper/common/ClientX509Util.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ private SslContextBuilder handleTcnativeOcspStapling(SslContextBuilder builder,
165165
}
166166
builder.enableOcsp(true);
167167
} else if (tcnativeOcspStapling.isFalse()) {
168+
// Disabling OCSP for the builder is always safe.
169+
// This is the same as the builder default, effectively a noop.
168170
builder.enableOcsp(false);
169171
}
170172
return builder;

0 commit comments

Comments
 (0)