附加优化
Keep-Alive 连接:
目的:
关键特性
async fn send_txn_with_keep_alive() -> Result<(), Box<dyn std::error::Error>> {
let client = reqwest::Client::builder()
.pool_idle_timeout(Some(Duration::from_secs(85))) // 空闲连接保活 85 秒
.build()?;最后更新于