From owner-freebsd-ports@FreeBSD.ORG Wed Sep 22 14:18:52 2010 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BEDCB106564A for ; Wed, 22 Sep 2010 14:18:52 +0000 (UTC) (envelope-from kpielorz_lst@tdx.co.uk) Received: from mail.tdx.com (mail.tdx.com [62.13.128.18]) by mx1.freebsd.org (Postfix) with ESMTP id 55F568FC17 for ; Wed, 22 Sep 2010 14:18:51 +0000 (UTC) Received: from HexaDeca64.dmpriest.net.uk (HPQuadro64.dmpriest.net.uk [62.13.130.30]) (authenticated bits=0) by mail.tdx.com (8.14.3/8.14.3/Kp) with ESMTP id o8ME7po5087775 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Wed, 22 Sep 2010 15:07:52 +0100 (BST) Date: Wed, 22 Sep 2010 15:06:47 +0100 From: Karl Pielorz To: freebsd-ports@FreeBSD.org Message-ID: X-Mailer: Mulberry/4.0.8 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: 'mbuffer' broken for network support / pipes under 7.2-R / 8.1-R? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2010 14:18:52 -0000 Hi, I've got the port of mbuffer (/usr/ports/misc/mbuffer) installed on a number of machines (amd64/FreeBSD 6.4-S, 7.2-S and 8.1-R) - but it seems to have issues... Firstly - any attempt to use the 'network' options of it, fail miserably (this is where mbuffer sends the data via tcp, instead of stdout) - e.g. " tester# mbuffer -I 10000 Assertion failed: ((err == 0) && (bsize == sizeof(rcvsize))), function openNetworkInput, file mbuffer.c, line 1358. Abort (core dumped) " None of the network options (for sending, or receiving) seem to work - they all fail with the above assert under 7.2/8.1 Under 6.4 - they 'seem' to work, but you get a warning "mbuffer: warning: unable to set socket receive buffer size: No buffer space available" spat out. Also, I've noticed - if using mbuffer as part of a chain, it fails to finish under 7.2/8.1 - e.g. " tester# cat /usr/src/COPYRIGHT | ssh root@othermachine "cat >test" " Works fine. " tester# cat /usr/src/COPYRIGHT | mbuffer | ssh root@othermachine "cat >test" " Completes the transfer fine, but then 'hangs forever' - hitting CTRL-C nets: "mbuffer: warning: error during output to : canceled" The same on an older 6.4 based host, completes fine. Anyone know about this, or can think of any workarounds? - 'mbuffer' is very handy (not only for speeding I/O but also rate limiting on transfers etc.) Thanks, -Karl