]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
httpd: psgix.io is the underlying IO object
authorEric Wong <e@80x24.org>
Wed, 7 May 2025 00:16:33 +0000 (00:16 +0000)
committerEric Wong <e@80x24.org>
Thu, 8 May 2025 18:13:04 +0000 (18:13 +0000)
commit3b78833f30a61dad264ac9c5c76e1f67234274aa
treea8cf80ade20e7f28c8d24a9a1e2dc72715a3bd91
parent119d242e62a7582ed2b40c7aceb9b0491b7e8bd9
httpd: psgix.io is the underlying IO object

PSGI::Extensions(3pm) states psgix.io should be "the raw IO
socket", so we shall conform to that specification.  For our
codebase to continue taking advantage of
public-inbox-daemon-specific features, we now expose the
PublicInbox::HTTP object via $env->{'pi-httpd.client'}.  The
`pi-httpd.async' boolean field is now gone, since we can just
test for the presence of `pi-httpd.app' or `pi-httpd.client'
to avoid occupying another hash table entry.
15 files changed:
lib/PublicInbox/ExtMsg.pm
lib/PublicInbox/GzipFilter.pm
lib/PublicInbox/HTTP.pm
lib/PublicInbox/HTTPD.pm
lib/PublicInbox/Limiter.pm
lib/PublicInbox/MailDiff.pm
lib/PublicInbox/ManifestJsGz.pm
lib/PublicInbox/Qspawn.pm
lib/PublicInbox/SolverGit.pm
lib/PublicInbox/ViewVCS.pm
lib/PublicInbox/WWW.pm
lib/PublicInbox/WwwAttach.pm
lib/PublicInbox/WwwListing.pm
lib/PublicInbox/WwwStatic.pm
t/httpd-corner.psgi