Fix build error
This commit is contained in:
@@ -872,9 +872,8 @@ app.post("/ssh/file_manager/ssh/uploadFile", async (req, res) => {
|
|||||||
fileName,
|
fileName,
|
||||||
fileSize: contentSize,
|
fileSize: contentSize,
|
||||||
});
|
});
|
||||||
// Extend keepalive interval for large files
|
// Note: SSH2 handles keepalive through connection options (keepaliveInterval, keepaliveCountMax)
|
||||||
// Note: SSH2 client doesn't expose config directly, but we can set keepalive
|
// which are set during connection establishment. No runtime method is available.
|
||||||
sshConn.client.setKeepAlive(true, 10000); // 10 seconds
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const fullPath = filePath.endsWith("/")
|
const fullPath = filePath.endsWith("/")
|
||||||
|
|||||||
Reference in New Issue
Block a user