Files
radicle-explorer/explorer/crates
Rūdolfs Ošiņš 3d353ca8ad httpd: Limit concurrent diffs
The limits on commit and diff responses bound each request, but not
how many run at once. Each request runs on its own blocking thread and
keeps running after its client disconnects, so a client sending many
requests for large diffs in parallel can still exhaust httpd's memory.

At most 4 commit, diff and diff stats requests now compute diffs at the
same time. Others wait for up to 10 seconds, which takes no memory
beyond the request, and then fail with 503 and `Retry-After`. Waiting
instead of failing at once keeps pages that request many commits at
once, such as repo listings in deployed explorers, working.
2026-12-01 16:30:56 +01:00
..