Skip to content

http - ClientRequest emits close before error #15317

@ronag

Description

@ronag

Consider the following scenario:

new Promise((resolve, reject) => req.on('close', resolve).on('error', reject))

Where the error is ignored since the promise is already resolved through close.

See, https://github.com/nodejs/node/pull/15270/files#r137951611

Metadata

Metadata

Assignees

No one assigned

    Labels

    httpIssues or PRs related to the http subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions