Skip to content

Commit f64edfc

Browse files
committed
fix: correctly set timeout of new socket
1 parent 6596e57 commit f64edfc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/client/lib/client/enterprise-maintenance-manager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ export default class EnterpriseMaintenanceManager extends EventEmitter {
107107
host,
108108
port,
109109
});
110-
newSocket.setMaintenanceTimeout();
110+
dbgMaintenance(`Set timeout for new socket to ${this.#options.gracefulMaintenance?.relaxedSocketTimeout}`);
111+
newSocket.setMaintenanceTimeout(this.#options.gracefulMaintenance?.relaxedSocketTimeout);
111112
dbgMaintenance(`Connecting to new socket: ${host}:${port}`);
112113
await newSocket.connect();
113114
dbgMaintenance(`Connected to new socket`);

0 commit comments

Comments
 (0)