Y
Hacker News
new
|
ask
|
show
|
jobs
by
Rauchg
5221 days 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/
1 comments
mikeknoop
5221 days ago
Is this still best practice? What's the more "up to date" method?
link
justincormack
5220 days ago
splice and tee are the newer kernel interfaces, sendfile is now implemented using them.
link
ntoshev
5220 days ago
Apparently these primitives haven't found their way to the Node.js land yet... and sendfile is still undocumented.
link
justincormack
5220 days ago
Not really surprising given the cross platform focus in Node now.
link