-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
I found in helper.js, we open the file to get the fileDescriptor using fs.openSync(filePath, 'r').
But do we need to close it when the server is closed?
the code in the node official API
server.on('close', () => fs.closeSync(fd));The link is
https://nodejs.org/dist/latest-v9.x/docs/api/http2.html#http2_http2stream_respondwithfd_fd_headers_options
Metadata
Metadata
Assignees
Labels
No labels