Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2011 20:15:16 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r220006 - head/sbin/hastd
Message-ID:  <201103252015.p2PKFGUk092190@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Fri Mar 25 20:15:16 2011
New Revision: 220006
URL: http://svn.freebsd.org/changeset/base/220006

Log:
  Use timeout from configuration file not only when sending and receiving,
  but also when establishing connection.
  
  MFC after:	1 week

Modified:
  head/sbin/hastd/primary.c

Modified: head/sbin/hastd/primary.c
==============================================================================
--- head/sbin/hastd/primary.c	Fri Mar 25 20:13:38 2011	(r220005)
+++ head/sbin/hastd/primary.c	Fri Mar 25 20:15:16 2011	(r220006)
@@ -509,7 +509,7 @@ primary_connect(struct hast_resource *re
 		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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103252015.p2PKFGUk092190>