Skip to content

cleanup signal listener #1287

Open
Open
@ronag

Description

@ronag

When passing an signal: AbortSignal to the fetch method we register an 'abort' listener through the new Request constructor (i.e. following signal). However, the spec does not define when and where this listener should be released in order to not cause leaks in the user provided signal.

Refs: https://github.com/nodejs/undici/blob/0badd390ad5aa531a66aacee54da664468aa1577/lib/api/api-fetch/request.js#L280-L295

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions