From 8f18ece3f4f05d79785f17d3c4cd521bf7c7e094 Mon Sep 17 00:00:00 2001 From: Sadzurami Date: Wed, 30 Oct 2024 13:27:15 +0300 Subject: [PATCH] feat: disable httpClient keepAlive --- handlers.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/handlers.js b/handlers.js index 3be3f23..7136bba 100644 --- a/handlers.js +++ b/handlers.js @@ -10,10 +10,7 @@ const TeamFortress2 = require('./index.js'); const Language = require('./language.js'); const Schema = require('./protobufs/generated/_load.js'); -const httpClient = new HttpClient({ - httpAgent: new HttpAgent({ keepAlive: true, timeout: 10000 }), - httpsAgent: new HttpsAgent({ keepAlive: true, timeout: 10000 }) -}); +const httpClient = new HttpClient({ httpAgent: new HttpAgent(), httpsAgent: new HttpsAgent() }); const handlers = TeamFortress2.prototype._handlers;