* sendfile from sockets
@ 2001-11-19 6:08 Lee Chin
2001-11-19 6:16 ` Anton Blanchard
0 siblings, 1 reply; 4+ messages in thread
From: Lee Chin @ 2001-11-19 6:08 UTC (permalink / raw)
To: linux, kernel, Linux Net
Hi,
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?
Thanks
Lee
__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sendfile from sockets
2001-11-19 6:08 sendfile from sockets Lee Chin
@ 2001-11-19 6:16 ` Anton Blanchard
2001-11-19 8:00 ` Lee Chin
2001-11-21 13:12 ` bert hubert
0 siblings, 2 replies; 4+ messages in thread
From: Anton Blanchard @ 2001-11-19 6:16 UTC (permalink / raw)
To: Lee Chin; +Cc: linux, kernel, Linux Net
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sendfile from sockets
2001-11-19 6:16 ` Anton Blanchard
@ 2001-11-19 8:00 ` Lee Chin
2001-11-21 13:12 ` bert hubert
1 sibling, 0 replies; 4+ messages in thread
From: Lee Chin @ 2001-11-19 8:00 UTC (permalink / raw)
To: Anton Blanchard; +Cc: linux, kernel, Linux Net
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)
Thanks
Lee
--- Anton Blanchard <anton@samba.org> 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
http://personals.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sendfile from sockets
2001-11-19 6:16 ` Anton Blanchard
2001-11-19 8:00 ` Lee Chin
@ 2001-11-21 13:12 ` bert hubert
1 sibling, 0 replies; 4+ messages in thread
From: bert hubert @ 2001-11-21 13:12 UTC (permalink / raw)
To: Anton Blanchard; +Cc: Lee Chin, linux, kernel, Linux Net
On Mon, Nov 19, 2001 at 05:16:53PM +1100, Anton Blanchard wrote:
> > 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).
The most recent manpages show this correctly.
--
http://www.PowerDNS.com Versatile DNS Software & Services
Trilab The Technology People
Netherlabs BV / Rent-a-Nerd.nl - Nerd Available -
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-11-21 13:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-19 6:08 sendfile from sockets Lee Chin
2001-11-19 6:16 ` Anton Blanchard
2001-11-19 8:00 ` Lee Chin
2001-11-21 13:12 ` bert hubert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®