Additional Optimisations
Keep-Alive Connections
Purpose
Key Features
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))) // Keep connections alive for 85
.build()?;Last updated