diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2008-04-26 15:48:14 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2008-04-26 15:48:14 +0200 |
commit | aacbadc14e8b56b1854d6d5e3c0bf00f9b10d5bd (patch) | |
tree | a9270e674bca367cfa8f06ac51b94af30f7cebae /nss/common.c | |
parent | 5a4f4530862c08cc0d1bba070bf2da99e45873e1 (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.c | 6 |
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, |