From 5d5cc58f59d9a707ac444646b43e425fa7e93ef6 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sat, 6 Jan 2024 09:37:47 +0900 Subject: [PATCH] chore(tuna-obs): set `keepAlive` to true for reuse TCP socket --- src/plugins/tuna-obs/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/tuna-obs/index.ts b/src/plugins/tuna-obs/index.ts index 5f5f2114..09cc5997 100644 --- a/src/plugins/tuna-obs/index.ts +++ b/src/plugins/tuna-obs/index.ts @@ -53,6 +53,7 @@ export default createPlugin({ .fetch(url, { method: 'POST', headers, + keepalive: true, body: JSON.stringify({ data }), }) .catch((error: { code: number; errno: number }) => {