Re: sendfile from sockets

From: Lee Chin (
Date: Mon Nov 19 2001 - 03:00:12 EST

Do I need to do something special to enable sendfile
in the kernel? It works on a 2.2 kernel, but not on a
2.4 kernel (and this is sendfile in general... not
just sockets)

--- Anton Blanchard <> wrote:
> > Although the man page says you can sendfile from a
> > socket,I am unable to do so... I can only send
> file
> > from a file, to either a socket or file
> >
> > Is this a kernel limitation?
> Yes, the manpage needs updating, you can only
> sendfile() from
> something that exists in the pagecache (ie not a
> socket).
> Anton

Do You Yahoo!?
Find the one for you at Yahoo! Personals
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to
More majordomo info at

This archive was generated by hypermail 2b29 : Fri Nov 23 2001 - 21:00:38 EST