Skip to content

Commit

Permalink
SECRETS: Shutdown the responder in case it becomes idle
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
fidencio committed Mar 7, 2017
1 parent 7f9eeaf commit 13214fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/config/cfg_rules.ini
Expand Up @@ -239,6 +239,7 @@ option = description
option = containers_nest_level
option = max_secrets
option = max_payload_size
option = responder_idle_timeout

[rule/allowed_sec_users_options]
validator = ini_allowed_options
Expand Down
5 changes: 5 additions & 0 deletions src/responder/secrets/secsrv.c
Expand Up @@ -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:
Expand Down

0 comments on commit 13214fd

Please sign in to comment.