From 74bd0f69d2ff2da63949e7660aa2f48f06734b90 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 20 Nov 2009 14:19:35 -0500 Subject: Raise some timeouts When using high debug levels or valgrind the code maybe slow enough that these timeouts were too strict. --- server/monitor/monitor.c | 2 +- server/providers/ldap/ldap_common.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'server') diff --git a/server/monitor/monitor.c b/server/monitor/monitor.c index 56bf6eaae..7801c60ce 100644 --- a/server/monitor/monitor.c +++ b/server/monitor/monitor.c @@ -2102,7 +2102,7 @@ static int monitor_service_init(struct sbus_connection *conn, void *data) mini->conn = conn; /* 5 seconds should be plenty */ - tv = tevent_timeval_current_ofs(5, 0); + tv = tevent_timeval_current_ofs(10, 0); mini->timeout = tevent_add_timer(ctx->ev, mini, tv, init_timeout, mini); if (!mini->timeout) { diff --git a/server/providers/ldap/ldap_common.c b/server/providers/ldap/ldap_common.c index deffb4aa4..6b619f905 100644 --- a/server/providers/ldap/ldap_common.c +++ b/server/providers/ldap/ldap_common.c @@ -295,7 +295,7 @@ int sdap_id_setup_tasks(struct sdap_id_ctx *ctx) if (ctx->be->domain->enumerate) { /* run the first one in a couple of seconds so that we have time to * finish initializations first*/ - tv = tevent_timeval_current_ofs(2, 0); + tv = tevent_timeval_current_ofs(10, 0); ret = ldap_id_enumerate_set_timer(ctx, tv); } else { /* the enumeration task, runs the cleanup process by itself, @@ -303,7 +303,7 @@ int sdap_id_setup_tasks(struct sdap_id_ctx *ctx) /* run the first one in a couple of seconds so that we have time to * finish initializations first*/ - tv = tevent_timeval_current_ofs(2, 0); + tv = tevent_timeval_current_ofs(10, 0); ret = ldap_id_cleanup_set_timer(ctx, tv); } -- cgit