From 96b1ccb934d3d529c47fa8029752eae16e75edf2 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 5 Feb 2007 20:43:12 +0000 Subject: [PATCH] Changed LDAP_OPT_TIMEOUT / LDAP_OPT_NETWORK_TIMEOUT behavior --- doc/man/man3/ldap_get_option.3 | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/doc/man/man3/ldap_get_option.3 b/doc/man/man3/ldap_get_option.3 index 970d4b0271..b98906d756 100644 --- a/doc/man/man3/ldap_get_option.3 +++ b/doc/man/man3/ldap_get_option.3 @@ -56,15 +56,14 @@ must be a This is a read-only, handler-specific option. .TP .B LDAP_OPT_TIMEOUT -Sets/gets a timeout value (\fIFIXME: currently unused\fP). -.BR outvalue +Sets/gets a timeout value for the synchronous API calls. +.B outvalue +and +.B invalue must be a -.BR "struct timeval **" , -and the resulting pointer must be freed by the caller using -.BR ldap_memfree (3). -.BR invalue -must be a -.BR "struct timeval *" . +.BR "struct timeval *" , +and they cannot be NULL. Using a struct with seconds set to -1 results +in an infinite timeout, which is the default. .TP .B LDAP_OPT_NETWORK_TIMEOUT Sets/gets the network timeout value after which @@ -72,14 +71,13 @@ Sets/gets the network timeout value after which following a .BR connect (2) returns in case of no activity. -.BR outvalue +.B outvalue +and +.B invalue must be a -.BR "struct timeval **" , -and the resulting pointer must be freed by the caller using -.BR ldap_memfree (3). -.BR invalue -must be a -.BR "struct timeval *" . +.BR "struct timeval *" , +and they cannot be NULL. Using a struct with seconds set to -1 results +in an infinite timeout, which is the default. .TP .B LDAP_OPT_DEREF Sets/gets the value that defines when alias deferencing must occur. -- 2.39.5