From owner-freebsd-current@FreeBSD.ORG Sun May 29 11:38:16 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCBF8106566C; Sun, 29 May 2011 11:38:16 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 360EA8FC0A; Sun, 29 May 2011 11:38:15 +0000 (UTC) Received: by bwz12 with SMTP id 12so3350938bwz.13 for ; Sun, 29 May 2011 04:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:x-comment-to :sender:date:in-reply-to:message-id:user-agent:mime-version :content-type; bh=Ja5VrxGVOYDjTZtsjrUVGKtmWJv/9fSrB+y4R0Kzz7s=; b=In6S6L4ohKGA+ZAbTF5Zu1P1YPfJovdv+npgy4abG6hU7cYZLijJujBn8ZimzCW8og onUq7uQcW6BJBiNyw0vqU5BaN9Tpzmjme6UdNMDamOZUWbZIWUC+vKFAH0dX1BIthTb2 MuowSl//LMz3iIdIfhSLBRhxmJR7s8CRx+LrE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:x-comment-to:sender:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=ulGyijCG2nOEE/22MK0X9lnLo53+w1DNiTOhtSlFIpttAa+EUXSfzVWIvca5QTf0jq 1ZW23ihGV8ecStPCohUQMLcnpXlC3znZKSI1fpHbMz5BKdPZGSXBQoTWzSh+0JK7Eom2 xC5TgPZjnZvxP1AS077Bh+jWcTPlHOa+2Krag= Received: by 10.204.76.83 with SMTP id b19mr3349796bkk.126.1306667519865; Sun, 29 May 2011 04:11:59 -0700 (PDT) Received: from localhost ([95.69.172.154]) by mx.google.com with ESMTPS id t23sm2608392bkf.16.2011.05.29.04.11.56 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 May 2011 04:11:57 -0700 (PDT) From: Mikolaj Golub To: Maxim Sobolev References: <4DDD4890.70604@FreeBSD.org> X-Comment-To: Maxim Sobolev Sender: Mikolaj Golub Date: Sun, 29 May 2011 14:11:55 +0300 In-Reply-To: <4DDD4890.70604@FreeBSD.org> (Maxim Sobolev's message of "Wed, 25 May 2011 11:21:04 -0700") Message-ID: <86hb8du5fo.fsf@kopusha.home.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Pawel Jakub Dawidek , "current@freebsd.org" Subject: Re: Weird issue with hastd(8) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2011 11:38:16 -0000 On Wed, 25 May 2011 11:21:04 -0700 Maxim Sobolev wrote: MS> Hi Pawel, MS> I am observing strange errors while synchronizing the data between MS> primary and secondary. I keep getting the following error messages: MS> May 25 11:09:19 eights hastd[10113]: [test] (secondary) Unable to MS> receive request header: Socket is not connected. MS> May 25 11:09:24 eights hastd[37571]: [test] (secondary) Worker process MS> exited ungracefully (pid=10113, exitcode=75). MS> May 25 11:10:17 eights hastd[12109]: [test] (secondary) Unable to MS> receive request header: Socket is not connected. MS> May 25 11:10:18 eights hastd[37571]: [test] (secondary) Worker process MS> exited ungracefully (pid=12109, exitcode=75). MS> May 25 11:10:39 eights hastd[14685]: [test] (secondary) Unable to MS> receive request header: Socket is not connected. MS> May 25 11:10:44 eights hastd[37571]: [test] (secondary) Worker process MS> exited ungracefully (pid=14685, exitcode=75). MS> The synchronization steel proceeds, but it's slow due to the need to MS> re-negotiate and re-spawn the secondary worker. I have tried to ktrace MS> both server and client at the same time. For some reason the primary MS> keeps sending data, while client gets 0-read from the recvfrom at some MS> point, while the primary keeps sending more data. This is 8-STABLE MS> code on both ends. MS> Any ideas of what could be wrong here are appreciated. This might be MSG_WAITALL issue I described on net@ (look for the thread "recv() with MSG_WAITALL might stuck when receiving more than rcvbuf", and also kern/154504). Could you please try the patch? http://people.freebsd.org/~trociny/uipc_socket.c.patch -- Mikolaj Golub