Re: sendfile data corruption

From: Anish Mistry <amistry_at_am-productions.biz>
Date: Sat, 11 Nov 2006 00:02:16 -0500
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/

Received on Sat Nov 11 2006 - 04:01:19 UTC

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