From owner-freebsd-ports@FreeBSD.ORG Wed Sep 22 18:04:18 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 5224A106566C for ; Wed, 22 Sep 2010 18:04:18 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from forward13.mail.yandex.net (forward13.mail.yandex.net [95.108.130.120]) by mx1.freebsd.org (Postfix) with ESMTP id 6DE0F8FC08 for ; Wed, 22 Sep 2010 18:04:17 +0000 (UTC) Received: from smtp13.mail.yandex.net (smtp13.mail.yandex.net [95.108.130.68]) by forward13.mail.yandex.net (Yandex) with ESMTP id F3EB8108035C; Wed, 22 Sep 2010 22:04:13 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1285178654; bh=mfowHHpJXLOIwPLdnARoYbHuORlmLm/tBVhR/f3Y64A=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=jtPXPK7zE71HUXty+y4gBdm1aDO0eLtM56YWy6yc+1o9Jf+TY70QyxpMJyee5Hgap 9R9i9NtjQBxF43g9r51XQ7BMxCXRG7yLQ6BjBGGWFTpax6kXCss15T0iQqnkJE3YTO qAAnJ0/6Kc9oUQek713kuEoSpSb/CnLaacXlKdig= Received: from smeshariki2.local (unknown [77.66.145.223]) by smtp13.mail.yandex.net (Yandex) with ESMTPSA id 4929041580A4; Wed, 22 Sep 2010 22:04:13 +0400 (MSD) Message-ID: <4C9A44A3.5000502@yandex.ru> Date: Wed, 22 Sep 2010 22:02:11 +0400 From: Ruslan Mahmatkhanov User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.9.2.9) Gecko/20100919 Thunderbird/3.1.4 MIME-Version: 1.0 To: Karl Pielorz References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------070201050005090002010309" X-Yandex-TimeMark: 1285178653 X-Yandex-Spam: 1 X-Yandex-Front: smtp13.mail.yandex.net Cc: freebsd-ports@FreeBSD.org Subject: Re: '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 18:04:18 -0000 This is a multi-part message in MIME format. --------------070201050005090002010309 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 22.09.2010 18:06, Karl Pielorz пишет: > > 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 Please use patch attached. It updates mbuffer to latest version that has many 64-bit related fixes. Tell if it's now ok for you. -- Regards, Ruslan --------------070201050005090002010309 Content-Type: text/plain; name="mbuffer20100526.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="mbuffer20100526.diff" ZGlmZiAtcnVOYSBtYnVmZmVyL01ha2VmaWxlIG1idWZmZXIvTWFrZWZpbGUKLS0tIG1idWZm ZXIvTWFrZWZpbGUJMjAwOS0wMS0wNyAxNjo0NjoyMi4wMDAwMDAwMDAgKzAzMDAKKysrIG1i dWZmZXIvTWFrZWZpbGUJMjAxMC0wOS0yMiAyMTo1NjoyNy4wMDAwMDAwMDAgKzA0MDAKQEAg LTYsNyArNiw3IEBACiAjCiAKIFBPUlROQU1FPQltYnVmZmVyCi1QT1JUVkVSU0lPTj0JMjAw OS4wMS4wNgorUE9SVFZFUlNJT049CTIwMTAuMDUuMjYKIENBVEVHT1JJRVM9CW1pc2MKIE1B U1RFUl9TSVRFUz0JaHR0cDovL3d3dy5tYWllci1rb21vci5kZS9zb2Z0d2FyZS9tYnVmZmVy LwogRElTVE5BTUU9CSR7UE9SVE5BTUV9LSR7UE9SVFZFUlNJT046Uy8uLy9nfQpkaWZmIC1y dU5hIG1idWZmZXIvZGlzdGluZm8gbWJ1ZmZlci9kaXN0aW5mbwotLS0gbWJ1ZmZlci9kaXN0 aW5mbwkyMDA5LTAxLTA3IDE2OjQ2OjIyLjAwMDAwMDAwMCArMDMwMAorKysgbWJ1ZmZlci9k aXN0aW5mbwkyMDEwLTA5LTIyIDIxOjU2OjUzLjAwMDAwMDAwMCArMDQwMApAQCAtMSwzICsx LDMgQEAKLU1ENSAobWJ1ZmZlci0yMDA5MDEwNi50Z3opID0gMjZmM2Q1YjliYWM4Y2FhOGFm NDRmOWU5ZTZkM2I0M2QKLVNIQTI1NiAobWJ1ZmZlci0yMDA5MDEwNi50Z3opID0gZTM1MzYz OWM2NDY2MGUwZjcwZjJhMDAzZDM2MTdhNDVhMzUxN2Y5YTNiMDhkN2NmYWQxYmJhODVhZTIw MzdmOQotU0laRSAobWJ1ZmZlci0yMDA5MDEwNi50Z3opID0gMTA2NDQ2CitNRDUgKG1idWZm ZXItMjAxMDA1MjYudGd6KSA9IGU5NDdjMmQyOTA2NGUyYzg3ZTk2NTMzZTg1NTE3YWQxCitT SEEyNTYgKG1idWZmZXItMjAxMDA1MjYudGd6KSA9IDBlYWUwOTgyYjkwODQ3MjIwODdhMTk5 OGY0YTQxMjA5ZTAwNTAwMTJmOTIwYzgyZGRjMzVkNzE4MzFiNmYwZGUKK1NJWkUgKG1idWZm ZXItMjAxMDA1MjYudGd6KSA9IDExNTI5NQo= --------------070201050005090002010309--