Skip to content
rusthacks.dev

Tag

timeouts

2 posts

Flat illustration for the post “Request Limits and Slow Client Attacks in Rust Services”, composed around web.
Security

Request Limits and Slow Client Attacks in Rust Services

Slow clients and oversized requests exhaust connections and memory. Set header and body timeouts, body size limits, concurrency limits and keep-alive bounds at the proxy and in the Axum service with Tower layers.

5 min read
Flat illustration for the post “Handling Database Timeouts and Retries in Rust Services”, composed around database.
Databases

Handling Database Timeouts and Retries in Rust Services

Set acquire, connect and statement timeouts, tell transient errors from permanent ones, retry only what is safe with backoff and jitter, and keep a retry from doubling a write. SQLx and PostgreSQL examples.

4 min read