Skip to content

Connections don't get limited #292

@SrIzan10

Description

@SrIzan10

Connections don't get limited when installing.

const agent = new Agent({ connections: 1 })
const instTask = installTask(installer, minecraftLocation, { agent: resolveAgent({ dispatcher: agent }) })

Errors:

[1]   [errors]: [
[1]     ConnectTimeoutError: Connect Timeout Error
[1]         at onConnectTimeout (C:\Users\USER\Desktop\Development\pmc-launcher\node_modules\undici\lib\core\connect.js:186:24)   
[1]         at C:\Users\USER\Desktop\Development\pmc-launcher\node_modules\undici\lib\core\connect.js:133:46
[1]         at Immediate._onImmediate (C:\Users\USER\Desktop\Development\pmc-launcher\node_modules\undici\lib\core\connect.js:172:33)
[1]         at process.processImmediate (node:internal/timers:476:21) {
[1]       code: 'UND_ERR_CONNECT_TIMEOUT',
[1]       url: 'https://piston-meta.mojang.com/v1/packages/12888726d2cc035d30965bcf8c825c7ac5f28ea0/1.20.2.json'
[1]     }
[1]   ]
[1] }
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions