Add timeout on read and write operations.

This commit is contained in:
Louis Dureuil 2024-11-13 17:01:23 +01:00
parent 13025594a8
commit bca2974266
No known key found for this signature in database

View File

@ -131,6 +131,7 @@ impl Embedder {
let client = ureq::AgentBuilder::new()
.max_idle_connections(REQUEST_PARALLELISM * 2)
.max_idle_connections_per_host(REQUEST_PARALLELISM * 2)
.timeout(std::time::Duration::from_secs(30))
.build();
let request = Request::new(options.request)?;