From owner-svn-src-head@FreeBSD.ORG Sun Aug 29 22:17:54 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04983106566B; Sun, 29 Aug 2010 22:17:54 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E89EE8FC1C; Sun, 29 Aug 2010 22:17:53 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o7TMHrl4076003; Sun, 29 Aug 2010 22:17:53 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o7TMHrVW076001; Sun, 29 Aug 2010 22:17:53 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201008292217.o7TMHrVW076001@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Sun, 29 Aug 2010 22:17:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r211979 - head/sbin/hastd X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2010 22:17:54 -0000 Author: pjd Date: Sun Aug 29 22:17:53 2010 New Revision: 211979 URL: http://svn.freebsd.org/changeset/base/211979 Log: Disconnect after logging errors. MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com Modified: head/sbin/hastd/primary.c Modified: head/sbin/hastd/primary.c ============================================================================== --- head/sbin/hastd/primary.c Sun Aug 29 21:42:45 2010 (r211978) +++ head/sbin/hastd/primary.c Sun Aug 29 22:17:53 2010 (r211979) @@ -1234,12 +1234,12 @@ remote_send_thread(void *arg) data != NULL ? length : 0) < 0) { hio->hio_errors[ncomp] = errno; rw_unlock(&hio_remote_lock[ncomp]); - remote_close(res, ncomp); pjdlog_debug(2, "remote_send: (%p) Unable to send request.", hio); reqlog(LOG_ERR, 0, ggio, "Unable to send request (%s): ", strerror(hio->hio_errors[ncomp])); + remote_close(res, ncomp); /* * Take request back from the receive queue and move * it immediately to the done queue.