Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss/common.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2008-04-26 15:48:14 +0200
committerArthur de Jong <arthur@arthurdejong.org>2008-04-26 15:48:14 +0200
commitaacbadc14e8b56b1854d6d5e3c0bf00f9b10d5bd (patch)
treea9270e674bca367cfa8f06ac51b94af30f7cebae /nss/common.c
parent5a4f4530862c08cc0d1bba070bf2da99e45873e1 (diff)
increase time out values because now nslcd will error out more quickly if the LDAP server is known to be unavailable
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@708 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss/common.c')
-rw-r--r--nss/common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nss/common.c b/nss/common.c
index 4466f1a..223cbfa 100644
--- a/nss/common.c
+++ b/nss/common.c
@@ -68,10 +68,10 @@ TFILE *nslcd_client_open()
return NULL;
}
/* set the timeouts */
- readtimeout.tv_sec=2; /* looking up stuff may take some time */
+ readtimeout.tv_sec=20; /* looking up stuff may take some time */
readtimeout.tv_usec=0;
- writetimeout.tv_sec=1; /* nslcd could be loaded with requests */
- writetimeout.tv_usec=500000;
+ writetimeout.tv_sec=10; /* nslcd could be loaded with requests */
+ writetimeout.tv_usec=0;
/* create a stream object */
if ((fp=tio_fdopen(sock,&readtimeout,&writetimeout,
READBUFFER_MINSIZE,READBUFFER_MAXSIZE,