]> Sergey Matveev's repositories - public-inbox.git/commit
cgit: use a dedicated named limiter
authorEric Wong <e@80x24.org>
Tue, 12 Mar 2019 01:18:30 +0000 (01:18 +0000)
committerEric Wong <e@80x24.org>
Thu, 4 Apr 2019 09:13:58 +0000 (09:13 +0000)
commit7661a5732ebf4470339c1293b2ea32082af887be
tree4bf344691bae2df70ad138f88c86f749b184b17a
parent89be7a1b89a60446fc0a385c5c1cfaeec2f92c88
cgit: use a dedicated named limiter

I mainly need this to enforce RLIMIT_CPU (and RLIMIT_CORE)
when requests come which generate giant, unrealistic diffs.

Per-coderepo limiters may be added in the future.  But for now,
I need to prevent cgit from monopolizing resources on my dinky
server.
Documentation/public-inbox-config.pod
lib/PublicInbox/Cgit.pm
lib/PublicInbox/Config.pm