summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c720e34)
raw | patch | inline | side by side (parent: c720e34)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 14 Oct 2015 16:13:31 +0000 (18:13 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Fri, 16 Oct 2015 09:53:46 +0000 (11:53 +0200) |
src/collectd.conf.pod | patch | blob | history | |
src/openldap.c | patch | blob | history |
diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index 59247da02b8c11b2725b8244706abeaa8e779784..48de6f9021605d7500bf29a6cc1fee17f099c929 100644 (file)
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
=item B<Timeout> I<Seconds>
-Sets the timeout value for ldap operations. Defaults to B<-1> which results in
-an infinite timeout.
+Sets the timeout value for ldap operations, in seconds. By default, the
+configured B<Interval> is used to set the timeout. Use B<-1> to disable
+(infinite timeout).
=item B<Version> I<Version>
diff --git a/src/openldap.c b/src/openldap.c
index 1ef9f7b9aa8b43736ce4aa4e7ea60d96813d02e7..dacb719230b4e2ea4e6a2c20cd6c9fadf1b8d39a 100644 (file)
--- a/src/openldap.c
+++ b/src/openldap.c
}
st->starttls = 0;
- st->timeout = -1;
+ st->timeout = (long) (CDTIME_T_TO_MS(plugin_get_interval()) / 1000);
st->verifyhost = 1;
st->version = LDAP_VERSION3;