Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



The interesting question is splice() is so old but why hasn't anybody implemented a production ready server system over it yet?


Is slice supported on nginx already? How do you configure it?


No I don't think so, not at present.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: