Merge pull request #1944 from theopolis/tls_config_interrupt

Check for interrupt requests in TLS config refresher
This commit is contained in:
Teddy Reed 2016-03-18 12:50:27 -07:00
commit 4a88311ca2

View File

@ -116,6 +116,11 @@ void TLSConfigRefreshRunner::start() {
// Cool off and time wait the configured period.
// Apply this interruption initially as at t=0 the config was read.
pauseMilli(FLAGS_config_tls_refresh * 1000);
// Since the pause occurs before the logic, we need to check for an
// interruption request.
if (interrupted()) {
return;
}
// Access the configuration.
auto plugin = Registry::get("config", "tls");