sendfile(2) SF_NOPUSH flag proposal

Igor Sysoev is at rambler-co.ru
Tue May 27 11:38:58 PDT 2003


On Tue, 27 May 2003, Terry Lambert wrote:

> Why?  Why not just fix the broken sendfile(2) implementation,
> instead?

Well, how ?

> So there's no barrier to you fixing this by either breaking
> up tcp_output() into two functions, or lazy-calling tcp_output(),
> instead of aggreesively calling it between headers and file
> data and file data and trailers in sendfile(2).  Right?  No
> API change necessary?

Did you look inside sendfile() implementation ?
There'are no tcp_output() calls at all.  Header and trailer are written by
writev() and file pages are written by so->so_proto->pr_usrreqs->pru_send().


Igor Sysoev
http://sysoev.ru/en/



More information about the freebsd-arch mailing list