'mbuffer' broken for network support / pipes under 7.2-R / 8.1-R?

Ruslan Mahmatkhanov cvs-src at yandex.ru
Wed Sep 22 18:04:18 UTC 2010


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 at othermachine "cat >test"
> "
>
> Works fine.
>
> "
> tester# cat /usr/src/COPYRIGHT | mbuffer | ssh root at othermachine "cat
>> test"
> "
>
> Completes the transfer fine, but then 'hangs forever' - hitting CTRL-C
> nets:
>
> "mbuffer: warning: error during output to <stdout>: 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
-------------- next part --------------
diff -ruNa mbuffer/Makefile mbuffer/Makefile
--- mbuffer/Makefile	2009-01-07 16:46:22.000000000 +0300
+++ mbuffer/Makefile	2010-09-22 21:56:27.000000000 +0400
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	mbuffer
-PORTVERSION=	2009.01.06
+PORTVERSION=	2010.05.26
 CATEGORIES=	misc
 MASTER_SITES=	http://www.maier-komor.de/software/mbuffer/
 DISTNAME=	${PORTNAME}-${PORTVERSION:S/.//g}
diff -ruNa mbuffer/distinfo mbuffer/distinfo
--- mbuffer/distinfo	2009-01-07 16:46:22.000000000 +0300
+++ mbuffer/distinfo	2010-09-22 21:56:53.000000000 +0400
@@ -1,3 +1,3 @@
-MD5 (mbuffer-20090106.tgz) = 26f3d5b9bac8caa8af44f9e9e6d3b43d
-SHA256 (mbuffer-20090106.tgz) = e353639c64660e0f70f2a003d3617a45a3517f9a3b08d7cfad1bba85ae2037f9
-SIZE (mbuffer-20090106.tgz) = 106446
+MD5 (mbuffer-20100526.tgz) = e947c2d29064e2c87e96533e85517ad1
+SHA256 (mbuffer-20100526.tgz) = 0eae0982b9084722087a1998f4a41209e0050012f920c82ddc35d71831b6f0de
+SIZE (mbuffer-20100526.tgz) = 115295


More information about the freebsd-ports mailing list