fix: prevent connection leak when redirect='error' #306
Annotations
2 errors and 3 notices
|
Test fetch
Process completed with exit code 1.
|
|
Test fetch:
test\fetch\long-lived-abort-controller.js#L36
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ MaxListenersExceededWarning: Possible EventTarget memory leak detected. 1501 abort listeners added to [AbortSignal]. MaxListeners is 1500. Use events.setMaxListeners() to increase limit
+ at [kNewListener] (node:internal/event_target:562:17)
+ at [kNewListener] (node:internal/abort_controller:331:24)
+ at AbortSignal.addEventListener (node:internal/event_target:686:23)
+ at Object.addAbortListener (D:\a\undici\undici\lib\core\util.js:662:12)
+ at new Request (D:\a\undici\undici\lib\web\fetch\request.js:439:14)
+ at fetch (D:\a\undici\undici\lib\web\fetch\index.js:144:21)
+ at fetch (D:\a\undici\undici\index.js:122:10)
+ at TestContext.<anonymous> (D:\a\undici\undici\test\fetch\long-lived-abort-controller.js:36:23)
+ at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
+ at async Test.run (node:internal/test_runner/test:1054:7) {
+ count: 1501,
+ target: AbortSignal {
+ [Symbol(events.maxEventTargetListeners)]: 1500,
+ [Symbol(events.maxEventTargetListenersWarned)]: true,
+ [Symbol(kAborted)]: false,
+ [Symbol(kComposite)]: false,
+ [Symbol(kEvents)]: SafeMap(1) [Map] {
+ 'abort' => <ref *370> {
+ next: <ref *369> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *368> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *367> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *366> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *365> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *364> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *363> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *362> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *361> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *360> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *359> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *358> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *357> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *356> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *355> Listener {
+
|
|
Test fetch
Total Tests: 409
Suites 📂: 21
Passed ✅: 408
Failed ❌: 1
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 42836.094ms
|
|
Test node-test
Total Tests: 216
Suites 📂: 3
Passed ✅: 213
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 3
Todo 📝: 0
Duration 🕐: 5974.866ms
|
|
Test unit
Total Tests: 1188
Suites 📂: 122
Passed ✅: 1186
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 2
Todo 📝: 0
Duration 🕐: 48369.090ms
|
Loading