summaryrefslogtreecommitdiffstats
path: root/src/responder/secrets
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2017-03-02 17:23:15 +0100
committerJakub Hrozek <jhrozek@redhat.com>2017-03-08 12:33:12 +0100
commit4358d76475f0292461a2a479d2149472db103c1d (patch)
treecec29869cfa198d21553c37abf58a1d43521355b /src/responder/secrets
parentef268f9e691b0953763fad7e66f0724bed9b3419 (diff)
downloadsssd-4358d76475f0292461a2a479d2149472db103c1d.tar.gz
sssd-4358d76475f0292461a2a479d2149472db103c1d.tar.xz
sssd-4358d76475f0292461a2a479d2149472db103c1d.zip
SECRETS: Shutdown the responder in case it becomes idle
Similarly to what has been done for the other responders, let's shutdown the secrets responder in case it becomes idle. Resolves: https://pagure.io/SSSD/sssd/issue/3316 Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com> Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/responder/secrets')
-rw-r--r--src/responder/secrets/secsrv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/responder/secrets/secsrv.c b/src/responder/secrets/secsrv.c
index 28eca9d20..b0467e90e 100644
--- a/src/responder/secrets/secsrv.c
+++ b/src/responder/secrets/secsrv.c
@@ -100,6 +100,11 @@ static int sec_get_config(struct sec_ctx *sctx)
sctx->rctx->client_idle_timeout = 10;
}
+ ret = responder_setup_idle_timeout_config(sctx->rctx);
+ if (ret != EOK) {
+ goto fail;
+ }
+
ret = EOK;
fail: