Re: sendfile data corruption

From: Pawel Worach <pawel.worach_at_gmail.com>
Date: Sat, 11 Nov 2006 04:32:52 +0100
Joe Marcus Clarke wrote:
> 
> Looks to me like there's some unnecessary calculations happening to get
> the xfsize.  Does the following patch help?
> 
> http://www.marcuscom.com/downloads/uipc_syscalls.c.diff
> 

Jumped the gun a bit there, worked well for small files but failed on 
bigger ones.

0>root_at_zero /usr/local/www/data# md5 sh
MD5 (sh) = e090ae9fc697b6ec84165af920034dc4
0>root_at_zero /usr/local/www/data# fetch -o - http://127.0.0.1/sh | md5
-                                             100% of  109 kB   57 MBps
e090ae9fc697b6ec84165af920034dc4

0>root_at_zero /usr/local/www/data# md5 pkg.tar
MD5 (pkg.tar) = 4acc148ebde3f491141950cf902b2d49
0>root_at_zero /usr/local/www/data# fetch -o - http://127.0.0.1/pkg.tar | md5
-                                             100% of  362 MB   67 MBps
98018da64b1fd111beaef8d990438604

ps. This is now back on latest -current with Joe's patch.

-- 
Pawel
Received on Sat Nov 11 2006 - 02:33:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:02 UTC