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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions