caddy/caddytls
Jared Ririe d11b648137 caddytls: Fix goroutine leak when restarting Caddy (#2644)
Each time the Caddyfile reloads and Caddy is restarted,
caddytls.NewConfig starts a goroutine for cleaning the
certificate storage. This goroutine ranges over a time.Ticker
channel; although Stop is called on this ticker, Stop does
not close the underlying channel so the goroutine never exits.

This change adds an additional channel that is listened to
in the certificate cleaning goroutine so it can exit
on restarts.
2019-06-11 15:24:35 -06:00
..
config.go caddytls: Fix goroutine leak when restarting Caddy (#2644) 2019-06-11 15:24:35 -06:00
config_test.go Extract most of caddytls core code into external CertMagic package 2018-12-10 19:49:29 -07:00
crypto.go Extract most of caddytls core code into external CertMagic package 2018-12-10 19:49:29 -07:00
crypto_test.go Extract most of caddytls core code into external CertMagic package 2018-12-10 19:49:29 -07:00
handshake.go tls: Update to match CertMagic refactor (#2571) 2019-04-20 12:11:27 -06:00
selfsigned.go Migrate to Go modules - remove vendor folder (#2504) 2019-03-29 20:30:48 -06:00
setup.go fix lint warnings (issue 2541) (#2551) 2019-04-22 10:20:37 -06:00
setup_test.go tls: Update to match CertMagic refactor (#2571) 2019-04-20 12:11:27 -06:00
tls.go Migrate to Go modules - remove vendor folder (#2504) 2019-03-29 20:30:48 -06:00
tls_test.go Extract most of caddytls core code into external CertMagic package 2018-12-10 19:49:29 -07:00