]> Sergey Matveev's repositories - public-inbox.git/commit
daemon: introduce host_with_port for identifying sockets
authorEric Wong <e@80x24.org>
Thu, 3 Mar 2016 05:14:31 +0000 (05:14 +0000)
committerEric Wong <e@80x24.org>
Thu, 3 Mar 2016 09:19:16 +0000 (09:19 +0000)
commitb38de6f02fa04e36b881d2aad9c7f792beb0b6a1
treef0d6f21a534a7da7ac29a0a082921cf1d0566e14
parentb8e30717b529d6461190b54efa8c6402197cdd4e
daemon: introduce host_with_port for identifying sockets

This allows us to share more code between daemons and avoids
having to make additional syscalls for preparing REMOTE_HOST
and REMOTE_PORT in the PSGI env in -httpd.

This will also make supporting HTTP (and NNTP) over Unix sockets
easier in a future commit.
lib/PublicInbox/Daemon.pm
lib/PublicInbox/HTTP.pm
script/public-inbox-httpd
t/httpd-corner.psgi
t/httpd-corner.t