Colorful background

AI 代码编辑器

中文文档实时同步官方最新内容,翻译专业,助你无障碍上手 Cursor。

mod.rs
72
73
74
75
76
77
78
Implement the cleanup function for the transport stack. Do not make the upgrade listeners optional.
Follow-up instructions...
pub(crate) struct TransportStack {
14: ListenerEndpoint,
tls: Option<Arc<Acceptor>>,
// listeners sent from the old process for graceful upgrade
#[cfg(unix)]
upgrade_listeners: Option<ListenFds>,
upgrade_listeners: ListenFds,
⊙ mod.rsCurrent File
Could you make it easier to switch certificates in the transport listeners?

I'll help modify the code to make certificate switching more flexible. The main changes will be to enhance the TlsAccept trait and modify how certificates are handled in the TlsSettings. Here are the key changes:

⊙ mod.rs
// ... existing code ...