Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/responder/common/responder_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ static void client_idle_handler(struct tevent_context *ev,
goto done;
}

if ((now - cctx->last_request_time) > cctx->rctx->client_idle_timeout) {
if ((now - cctx->last_request_time) >= cctx->rctx->client_idle_timeout) {
/* This connection is idle. Terminate it */
DEBUG(SSSDBG_TRACE_INTERNAL,
"Terminating idle client [%p][%d]\n",
Expand All @@ -677,7 +677,7 @@ errno_t reset_client_idle_timer(struct cli_ctx *cctx)
static errno_t setup_client_idle_timer(struct cli_ctx *cctx)
{
struct timeval tv =
tevent_timeval_current_ofs(cctx->rctx->client_idle_timeout/2, 0);
tevent_timeval_current_ofs(cctx->rctx->client_idle_timeout/2 + 1, 0);

talloc_zfree(cctx->idle);

Expand Down
4 changes: 3 additions & 1 deletion src/sbus/sbus_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@

/* Use longer default timeout than libdbus default due to expensive
* selinux operation: see https://bugzilla.redhat.com/show_bug.cgi?id=1654537
* Another example of a very long running operation - BE_REQ_INITGROUPS where
* the user is a member of tens of thousands of groups.
*/
#define SBUS_MESSAGE_TIMEOUT 120000
#define SBUS_MESSAGE_TIMEOUT 300000

/**
* Bound message with a talloc context.
Expand Down