about summary refs log tree commit homepage
path: root/lib/PublicInbox/NNTPD.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-06-24 02:52:46 +0000
committerEric Wong <e@80x24.org>2019-06-24 05:26:27 +0000
commit6ea82fb5d6cd5ae6813f3700fe915ab9110086ea (patch)
tree485e5e470c048eeeff2c5701891abae6631d38be /lib/PublicInbox/NNTPD.pm
parentca6b59974a0f2e24a1d569d118b55c4fc66ff7a3 (diff)
downloadpublic-inbox-6ea82fb5d6cd5ae6813f3700fe915ab9110086ea.tar.gz
No need to allocate a new PerlIO::scalar filehandle for every
client, instead we can now pass the same CODE reference which
calls DS->write on a reused string reference.
Diffstat (limited to 'lib/PublicInbox/NNTPD.pm')
-rw-r--r--lib/PublicInbox/NNTPD.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/NNTPD.pm b/lib/PublicInbox/NNTPD.pm
index 6d9ffd5f..4f30c5d9 100644
--- a/lib/PublicInbox/NNTPD.pm
+++ b/lib/PublicInbox/NNTPD.pm
@@ -25,6 +25,7 @@ sub new {
                 out => \*STDOUT,
                 grouplist => [],
                 servername => $name,
+                greet => \"201 $name ready - post via email\r\n",
                 # accept_tls => { SSL_server => 1, ..., SSL_reuse_ctx => ... }
         }, $class;
 }