[whatwg/fetch] cleanup signal listener (#1287)

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.

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

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1287

Received on Tuesday, 10 August 2021 18:29:02 UTC