hard20 pts · first answer countsapi-designnodejsstreams
File descriptors leak during downloads
A download route uses fs.createReadStream(path).pipe(res). When clients disconnect mid-download, open file handles slowly build up. What is the fix?
Discussion 0
Join free to post in the discussion.
Related questions
- Promise and setTimeout orderBackend Developer
- Response for a successful DELETEBackend Developer
- A product page removed for goodBackend Developer
- Signing up with a taken usernameBackend Developer
- Calling DELETE on a read-only routeBackend Developer
- A client posts XML to a JSON APIBackend Developer
- URL for one productBackend Developer
- Telling the client where the new item livesBackend Developer