Skip to content

Conversation

koarz
Copy link

@koarz koarz commented Sep 17, 2025

No description provided.

final String pemCa = config.getSSLPemCaCertFile();

// Create scheduled executor for periodic certificate checking
certificateCheckExecutor = Executors.newSingleThreadScheduledExecutor(r -> {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是因为要调用 checkAndReloadCertificates 所以不能全局用一个单例来监听文件变更吗?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RepImpl里只创建一个channelFactory所以只有一个监听线程

@gavinchou gavinchou changed the title [enhance](bdbje)support ssl cert reload [enhance](bdbje)support ssl/tls cert reload Oct 14, 2025
@gavinchou gavinchou merged commit 7ed72b2 into apache:bdbje Oct 14, 2025
@gavinchou gavinchou added the tls label Oct 14, 2025
@koarz koarz deleted the reload-ssl-ctx branch October 17, 2025 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants