Skip to content

How to configure maxSockets ? #833

Answered by mcollina
goriunov asked this question in Q&A
Jun 14, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote
import { setGlobalDispatcher, Agent, request } from 'undici'

setGlobalDispatcher(new Agent({ connections: 42 }))

await request(..)

Replies: 1 comment 2 replies

Comment options

mcollina
Jun 17, 2021
Maintainer Sponsor

You must be logged in to vote
2 replies
@goriunovphl
Comment options

@mcollina
Comment options

mcollina Jun 18, 2021
Maintainer Sponsor

Answer selected by mcollina
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants