Streams are great and all but error handling is complex with it.
I've learned with this great talk by Matteo Collina that fs.createReadStream('data.txt').pipe(res) isn't the right way to stream a file over HTTP because this will create a memory leak. Here Matteo explains why.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Streams are great and all but error handling is complex with it.
I've learned with this great talk by Matteo Collina that
fs.createReadStream('data.txt').pipe(res)
isn't the right way to stream a file over HTTP because this will create a memory leak. Here Matteo explains why.