Skip to content

No server-level request timeout / slow-loris protection #131

Description

@Darkdruce

Summary

There is no per-request timeout layer; a slow client can hold a connection/handler open.

Location

  • src/api/mod.rs:46-93 (layers: cors/trace/body-limit/rate-limit, no timeout)

Details & impact

Slow-loris-style clients can tie up server resources, especially combined with the unbounded limiter map.

Suggested fix

Add tower_http::timeout::TimeoutLayer (and consider header/read timeouts at the server).

Acceptance criteria

  • Requests exceeding a configured timeout are aborted.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26apiHTTP API surface and handlersreliabilityReliability, resilience, and fault-tolerancesecurity

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions