4 ms·
You might want to read this interesting (albeit slightly outdated) post about leveraging `sendfile` in Node.JS by Peter Griess: http://blog.std.in/2010/09/09/u
by Rauchg 15y ago
You might want to read this interesting (albeit slightly outdated) post about leveraging `sendfile` in Node.JS by Peter Griess:
http://blog.std.in/2010/09/09/using-sendfile-with-nodejs/ http://blog.std.in/2010/09/09/using-sendfile-with-nodejs/
- mikeknoop 15y agoIs this still best practice? What's the more "up to date" method?
- justincormack 15y agosplice and tee are the newer kernel interfaces, sendfile is now implemented using them.
- ntoshev 15y agoApparently these primitives haven't found their way to the Node.js land yet... and sendfile is still undocumented.
- justincormack 15y agoNot really surprising given the cross platform focus in Node now.