Date: Sat, 22 Sep 2007 20:32:15 -0300 From: Marcus Alves Grando <mnag@FreeBSD.org> To: Rong-en Fan <grafan@gmail.com> Cc: freebsd-current@freebsd.org, andre@freebsd.org Subject: Re: sendfile() without struct sf_hdtr broken since rev 1.256 Message-ID: <46F5A5FF.8010906@FreeBSD.org> In-Reply-To: <6eb82e0709212208o6d52c1bdgc4999f7432d4d7d2@mail.gmail.com> References: <46F493FB.6020603@FreeBSD.org> <6eb82e0709212208o6d52c1bdgc4999f7432d4d7d2@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Rong-en Fan wrote: > On 9/22/07, Marcus Alves Grand <mnag@freebsd.org> wrote: >> People, >> >> Since rev 1.256 sendfile broken lighttpd sendfile() that doesn´t use >> struct sf_hdtr. >> >> Sometimes sendfile works sometimes not like you can see below: >> > [...] >> rev 1.256: >> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/uipc_syscalls.c.diff?r1=1.255;r2=1.256 > > Thank you for finding this out. I encountered exactly the same > problem but have no time to investigate. > > BTW, if I downgrade lighttpd to 1.4.16 from 1.4.17/1.4.18, with > rev 1.256 uipc_syscalls.c it works. Ok. I commit one fix for lighttpd. But i still think there´s a problem in sendfile(). For example, if i revert rev 1.256 sendfile return "off_t *sbytes" > 0 otherwise sendfile() return 0 in sbytes many times. Someone know if this new behavior are correct? Regards > > Regards, > Rong-En Fan > >> Regards >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" -- Marcus Alves Grando marcus(at)sbh.eng.br | Personal mnag(at)FreeBSD.org | FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46F5A5FF.8010906>