mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-12-02 19:40:35 +08:00
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.