lkml.org 
[lkml]   [1998]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: sendfile() documentation
Date
In article <19981216201600.B21869@math.fu-berlin.de>,
Felix von Leitner <leitner@math.fu-berlin.de> wrote:
>Thus spake Pawel Krawczyk (kravietz@tau.ceti.com.pl):
>> BTW has anynone tried to actually use sendfile() in real world? I.e. in
>> Apache or other daemons that tend to transfer big amounts of data.
>
>To be honest, I don't understand why anyone would want to use it.
>If I use sendfile, I need to open a new process/thread for every
>connection, right?

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().

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.320 / U:0.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site