From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 5FB6F1F54E for ; Mon, 1 Aug 2022 21:24:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1659389087; bh=RT1jROwE57+gTqzGS12rZjURZfp/DrlpDAWFVJqooyg=; h=From:To:Subject:Date:From; b=EkD4vURfX8emwB1YIGGkZ9iFTUSemRFddw4qOcCax10a1xhSqQkvfAq4fbyMS7YU8 Rc+lRpOda6MC7m5Ydq0JWJlwYQ5q9ZmqbWi1x4uHw4V/pQecuYOkd0krs6uanWSN1m GlJNBC0rwwEzKOHe7XJws4ojh8Qog6bYMqGumQOE= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/6] flesh out more -netd funcionality Date: Mon, 1 Aug 2022 21:24:41 +0000 Message-Id: <20220801212447.270000-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: These changes will allow public-inbox-netd to host multiple, completely-unrelated .psgi apps within the same process via psgi= as a per-listener option. Having separate stdout/stderr facsimiles is also supported via err= and out= keys (HTTP(S) only has err= for $env->{'psgi.errors'}). (public-inbox-{nntp,imap,pop3,http}d can actually do all that -netd can do, too, the only difference is -netd has no default port/protocol). Further optimizations (PublicInbox::Config object sharing) and reload improvements (TLS cert reload on SIGHUP) are on the way... Eric Wong (6): httpd: make internals slightly more generic daemon: support per-listener env, .psgi, out, err daemon: require absolute cert/key paths with --daemonize daemon: add diagnostics about inherited/bound listeners daemon: allow listening on well-known ports based on protocol daemon: share FDs for identical log paths Documentation/public-inbox-daemon.pod | 51 ++++++-- Documentation/public-inbox-netd.pod | 34 ++++-- MANIFEST | 1 + lib/PublicInbox/Daemon.pm | 168 +++++++++++++++++--------- lib/PublicInbox/HTTP.pm | 10 +- lib/PublicInbox/HTTPD.pm | 60 +++++---- lib/PublicInbox/IMAPD.pm | 3 +- lib/PublicInbox/NNTPD.pm | 25 ++-- lib/PublicInbox/POP3D.pm | 36 +++--- t/alt.psgi | 17 +++ t/httpd-corner.psgi | 8 +- t/httpd-corner.t | 39 +++++- 12 files changed, 304 insertions(+), 148 deletions(-) create mode 100644 t/alt.psgi