diff --git a/common/nslcd-prot.c b/common/nslcd-prot.c index 87c0066..14b9b7a 100644 --- a/common/nslcd-prot.c +++ b/common/nslcd-prot.c @@ -42,7 +42,7 @@ /* read timeout is 60 seconds because looking up stuff may take some time write timeout is 10 secods because nslcd could be loaded with requests */ #define READ_TIMEOUT 60 * 1000 -#define WRITE_TIMEOUT 10 * 1000 +#define WRITE_TIMEOUT 20 * 1000 /* buffer sizes for I/O */ #define READBUFFER_MINSIZE 1024 diff --git a/nslcd/nslcd.c b/nslcd/nslcd.c index a0035d2..84d2151 100644 --- a/nslcd/nslcd.c +++ b/nslcd/nslcd.c @@ -69,7 +69,7 @@ /* read timeout is half a second because clients should send their request quickly, write timeout is 60 seconds because clients could be taking some time to process the results */ -#define READ_TIMEOUT 500 +#define READ_TIMEOUT 2000 #define WRITE_TIMEOUT 60 * 1000 /* buffer sizes for I/O */ diff --git a/nss/common.h b/nss/common.h index 82b3d49..cefad95 100644 --- a/nss/common.h +++ b/nss/common.h @@ -44,7 +44,7 @@ /* skip timeout determines the maximum time to wait when closing the connection and reading whatever data that is available */ -#define SKIP_TIMEOUT 500 +#define SKIP_TIMEOUT 2000 /* These are macros for handling read and write problems, they are NSS specific due to the return code so are defined here. They