Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Graphe des révisions

5 commits

Auteur SHA1 Message Date
John Smith
d2edca62de
network/graceful.go made redundant
The call to http.Server.Shutdown in main.go that happens on os.Interrupt
closes listeners. Remove racey code and format network/network.go.

Running Listener.Accept in a loop is not necessary as the stdlib expects
SA_RESTART to be set for signal handlers.
2017-05-29 19:19:36 +10:00
PantsuDev
70f87e7aac finish repo transfer 2017-05-17 15:58:40 +10:00
Jeff Becker
1089883ed5 initial 2017-05-10 13:29:35 -04:00
Jeff Becker
73f77f1624 properly handle os.Interrupt Signal
This makes systemd not put unit into fail mode when stopping

INFO:

* make sure to use signals.RegisterCloser for everything that should be closed on interrupt

* for any net.Listeners created make sure to wrap them with network.WrapListener and register with signals.RegisterCloser
2017-05-10 08:23:29 -04:00
Jeff Becker
37350a1233 add initial optional i2p connectivity 2017-05-07 15:51:37 -04:00