sendfile data corruption

Anish Mistry amistry at am-productions.biz
Fri Nov 10 21:01:19 PST 2006


On Friday 10 November 2006 22:32, Pawel Worach wrote:
> 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
Yeah, I'm seeing this too with apache2 and apache22 on -CURRENT.

-- 
Anish Mistry
amistry at am-productions.biz
AM Productions http://am-productions.biz/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20061111/4772902c/attachment-0001.pgp


More information about the freebsd-current mailing list