From 7d4df5cd0b7b11b8015bede8adf4b89e38eb07cf Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Fri, 25 Mar 2011 20:15:16 +0000 Subject: [PATCH] Use timeout from configuration file not only when sending and receiving, but also when establishing connection. MFC after: 1 week --- sbin/hastd/primary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c index 25322c014422..0f4a872aa91d 100644 --- a/sbin/hastd/primary.c +++ b/sbin/hastd/primary.c @@ -509,7 +509,7 @@ primary_connect(struct hast_resource *res, struct proto_conn **connp) primary_exit(EX_TEMPFAIL, "Unable to receive connection from parent"); } - if (proto_connect_wait(conn, HAST_TIMEOUT) < 0) { + if (proto_connect_wait(conn, res->hr_timeout) < 0) { pjdlog_errno(LOG_WARNING, "Unable to connect to %s", res->hr_remoteaddr); proto_close(conn);