]> Sergey Matveev's repositories - public-inbox.git/commit
nntp: send greeting immediately for plain sockets
authorEric Wong <e@80x24.org>
Mon, 24 Jun 2019 02:52:52 +0000 (02:52 +0000)
committerEric Wong <e@80x24.org>
Mon, 24 Jun 2019 05:26:27 +0000 (05:26 +0000)
commitce8cdcd68fd899d28b5d7c0354883b0cb33fc4d6
tree74a3b85bd90cc2962cdc287467d39fc9ffdbba1e
parent2b18e497086cb92d86d41e842c75feb1a28e9053
nntp: send greeting immediately for plain sockets

A tiny write() for the greeting on a just accept()-ed TCP socket
won't fail with EAGAIN, so we can avoid the extra epoll syscall
traffic with plain sockets.
lib/PublicInbox/NNTP.pm