From bbb3be686ad960c5b1f34a7771dec09eb1783455 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 2 Jul 2021 12:58:25 +0200 Subject: [PATCH] Use dns cache for requests Prevent blocking issues in uv thread pool --- server/helpers/requests.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/helpers/requests.ts b/server/helpers/requests.ts index d3c83d26e..36e69458e 100644 --- a/server/helpers/requests.ts +++ b/server/helpers/requests.ts @@ -185,6 +185,7 @@ function buildGotOptions (options: PeerTubeRequestOptions) { return { method: options.method, + dnsCache: true, json: options.json, searchParams: options.searchParams, timeout: options.timeout ?? REQUEST_TIMEOUT,