From 464573869906a0ea01addfb43eac95f3c1f5fda3 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Sun, 29 Jun 2025 18:34:47 +0300 Subject: [PATCH] fix(telnet): use socketTimeout option for connect and exec --- protocols/core.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/protocols/core.js b/protocols/core.js index 9c20a0f..fd92fac 100644 --- a/protocols/core.js +++ b/protocols/core.js @@ -346,10 +346,12 @@ export default class Core extends EventEmitter { } async telnetConnect (params) { + const { socketTimeout, host } = this.options + await this.telnetClient.connect({ - timeout: 2000, - execTimeout: 2000, - host: this.options.host, + timeout: socketTimeout, + execTimeout: socketTimeout, + host, debug: this.debugEnabled, ...params })