3 ms·
The "modern" way to do things is to use the splice syscall and related calls instead of sendfile, which can deal with copying between sockets and appending head
by justincormack 12y ago
The "modern" way to do things is to use the splice syscall and related calls instead of sendfile, which can deal with copying between sockets and appending headers more directly.
Igor said in a talk I went to that Nginx 1.x was written for FreeBSD first, while 2.0 will be written for Linux first so perhaps some of these things may change (hence "nopush" in the config file, the freebsd term).
- dirtyaura 12y agoIs slice supported on nginx already? How do you configure it?
- justincormack 12y agoNo I don't think so, not at present.
- est 12y agoThe interesting question is splice() is so old but why hasn't anybody implemented a production ready server system over it yet?