]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
http: expose reused connection counter in PSGI env
authorEric Wong <e@80x24.org>
Sun, 13 Jul 2025 00:08:34 +0000 (00:08 +0000)
committerEric Wong <e@80x24.org>
Wed, 16 Jul 2025 09:20:34 +0000 (09:20 +0000)
commit1a0e93016f6649340844c9d3a11cf2435ab6ca19
treee30004729bd9dc90086e11d7b62e9efe4dc92d4d
parent76916b4a41f4b72fa32d7d3bb93b6d83d602870f
http: expose reused connection counter in PSGI env

`$env->{pi-httpd.request_nr}' is now accessible via the PSGI
env for middlewares to use to identify reused connections.
This can be useful for middlewares to implement rules for
identifying and rejecting/allowing certain clients (e.g.
aggressive bots).
lib/PublicInbox/HTTP.pm