Date: Wed, 22 Sep 2010 22:02:11 +0400 From: Ruslan Mahmatkhanov <cvs-src@yandex.ru> To: Karl Pielorz <kpielorz_lst@tdx.co.uk> Cc: freebsd-ports@FreeBSD.org Subject: Re: 'mbuffer' broken for network support / pipes under 7.2-R / 8.1-R? Message-ID: <4C9A44A3.5000502@yandex.ru> In-Reply-To: <B266E3BF267EA77C5E099324@HexaDeca64.dmpriest.net.uk> References: <B266E3BF267EA77C5E099324@HexaDeca64.dmpriest.net.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <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 --------------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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C9A44A3.5000502>