summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-04-02 09:34:33 +0000
committerpjd <pjd@FreeBSD.org>2011-04-02 09:34:33 +0000
commit005ff1d986daa0c2e09aaf6856775d5d7a01135e (patch)
treeb4f141fd6e5cab080706771454afb50b0d27f9f9 /sbin
parent6a5b53255825a135d8ea993273e737099ce88c63 (diff)
downloadFreeBSD-src-005ff1d986daa0c2e09aaf6856775d5d7a01135e.zip
FreeBSD-src-005ff1d986daa0c2e09aaf6856775d5d7a01135e.tar.gz
Increase default timeout from 5 seconds to 20 seconds. 5 seconds is definitely
to short under heavy load and I was experiencing those timeouts in my recent tests. MFC after: 1 week
Diffstat (limited to 'sbin')
-rw-r--r--sbin/hastd/hast.conf.54
-rw-r--r--sbin/hastd/hast.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/sbin/hastd/hast.conf.5 b/sbin/hastd/hast.conf.5
index 9bf6c4e..c4d5cc4 100644
--- a/sbin/hastd/hast.conf.5
+++ b/sbin/hastd/hast.conf.5
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd March 20, 2011
+.Dd April 2, 2011
.Dt HAST.CONF 5
.Os
.Sh NAME
@@ -241,7 +241,7 @@ LZF is very fast, general purpose compression algorithm.
.Pp
Connection timeout in seconds.
The default value is
-.Va 5 .
+.Va 20 .
.It Ic exec Aq path
.Pp
Execute the given program on various HAST events.
diff --git a/sbin/hastd/hast.h b/sbin/hastd/hast.h
index a78b820..df581e3 100644
--- a/sbin/hastd/hast.h
+++ b/sbin/hastd/hast.h
@@ -83,7 +83,7 @@
#define HIO_KEEPALIVE 5
#define HAST_USER "hast"
-#define HAST_TIMEOUT 5
+#define HAST_TIMEOUT 20
#define HAST_CONFIG "/etc/hast.conf"
#define HAST_CONTROL "/var/run/hastctl"
#define HASTD_LISTEN "tcp4://0.0.0.0:8457"
OpenPOWER on IntegriCloud