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

There is nothing that prevents you from using sendfile and HTTP/2 at the same time. You still dump the contents directly into the socket.


Yes there is: HTTP/2's and HTTP/3's framing of messages is such that you can't reliably dump a file as-is onto an HTTP/2 connection, as it may exceed the maximum size allowed by a frame.


You can dump only the necessary part of the file. It does not have to be the whole file at once.




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

Search: