Messages in this thread | | | From | (Linus Torvalds) | Subject | Re: sendfile() documentation | Date | 16 Dec 1998 20:11:25 GMT |
| |
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/
| |