]> Sergey Matveev's repositories - public-inbox.git/commit
daemon: graceful shutdown warning and limit removal
authorEric Wong <e@80x24.org>
Sat, 30 Apr 2016 02:57:40 +0000 (02:57 +0000)
committerEric Wong <e@80x24.org>
Sat, 30 Apr 2016 08:29:33 +0000 (08:29 +0000)
commit9da6fcbb3e6d720a4b575a48063ecf3240a44022
tree2f633838fd3e5595c2cbb57dfd421713f2a5533c
parentf30a78b3b8f00298c5be2aa724a7358ff892efda
daemon: graceful shutdown warning and limit removal

git clones may take longer than 30s, much longer...  So prepare
to wait almost indefinitely for sockets to timeout and document
the second signal behavior for immediate shutdown.

While we're at it, move parent death handling to a separate
class to avoid Danga::Socket->AddOtherFds, since that does not
allow proper handling the parent pipe being closed and would
actually misterminate a worker prematurely.  t/nntpd.t is update
to illustrate the failure with workers enabled.

We will work to keep memory usage low and let clients take their
time without interrupting them.
lib/PublicInbox/Daemon.pm
lib/PublicInbox/ParentPipe.pm [new file with mode: 0644]
t/nntpd.t