lkml.org 
[lkml]   [1998]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: sendfile() documentation


On Wed, 16 Dec 1998, Chip Salzenberg wrote:

> According to Linus Torvalds:
> > No. sendfile() was designed to do the right thing wrt nonblocking
> > writes, so you can have a select() loop with sendfile() the same way
> > you'd have it with read()+write().
>
> Would you mean "the right thing wrt nonblocking _reads_", by any chance?

Nope, sendfile() always reads from the page cache, so the reads are never
non-blocking. Obviously for a web server you'd do non-blocking reads too
(to get the commands from the client), but sendfile() itself is not
implicated in that end..

Linus


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.035 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site