]> Sergey Matveev's repositories - public-inbox.git/commit
net_reader: set SO_KEEPALIVE on all Net::NNTP sockets
authorEric Wong <e@80x24.org>
Sat, 18 Sep 2021 09:33:31 +0000 (09:33 +0000)
committerEric Wong <e@80x24.org>
Sat, 18 Sep 2021 20:25:59 +0000 (20:25 +0000)
commit9d54d6260497a2a08bdefd25f02e817ad6505264
treefbdae88901d1ec80fd303e7fc2a225db78c936d7
parent30a88a6629af3146f68f9fe1f13054b7633559bf
net_reader: set SO_KEEPALIVE on all Net::NNTP sockets

SO_KEEPALIVE can prevent stuck processes and is safe to enable
unconditionally on all TCP sockets (like git, and the rest of
public-inbox does).  Verified via strace on both NNTP and NNTPS
with and without nntp.proxy=socks5h://...
lib/PublicInbox/NetReader.pm