salvo-timeout

Configure global and per-route request timeouts for Salvo APIs.

20|5|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/salvo-rs/salvo-skills --skill salvo-timeout
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: salvo-timeout
Source: https://github.com/salvo-rs/salvo-skills/tree/main/skills/salvo-timeout
Command: npx skills add https://github.com/salvo-rs/salvo-skills --skill salvo-timeout

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Salvo applications often face resource pressure from slow or hanging requests. This skill provides configurable request timeouts to bound processing time and protect server resources.

Core Features & Use Cases

  • Global timeouts that cap entire request lifespans.
  • Per-route timeouts to tailor budgets for API endpoints.
  • Real-world use: protect fast endpoints and shield backends during long operations.

Quick Start

Add a Timeout hoop to your Router to enforce a default timeout across routes.

Frequently Asked Questions about salvo-timeout

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set request timeouts in a Rust web framework to prevent slow requests?

To set request timeouts in a Rust web framework, you apply a Timeout hoop to your Router to cap request lifespans and prevent slow requests from consuming server resources. This bounds processing times globally or per-route.

Can I apply per-route timeouts for specific API endpoints instead of a global limit?

Yes, you can apply per-route timeouts to tailor processing time budgets for specific API endpoints. This allows you to protect fast endpoints with strict limits while allowing longer operations on designated routes.

Why do my Salvo APIs hang and consume server resources under heavy load?

Salvo APIs hang and consume resources because slow requests are left unbounded. Adding configurable request timeouts caps the processing time per-route or globally, protecting backend services and improving reliability.

Does the Salvo web framework support custom error responses for timed-out requests?

Yes, the Salvo web framework supports custom error responses for timed-out requests. When configuring request timeouts via the Timeout hoop, you can specify custom error responses for requests that exceed their budget.

What is the best way to protect fast API endpoints from being blocked by slow operations?

The best way to protect fast API endpoints is enforcing per-route request timeouts to tailor budgets for different endpoints. This shields backends during long operations by bounding processing times and dropping hanging requests.