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 ...

本项目仅为 Cursor 官方文档的中文翻译,与 Cursor 官方及其公司无任何关联。若有侵权请联系删除。