Skip to content

No closeSync API called #2

@xiabin1235910

Description

@xiabin1235910

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions