Open
Description
I have a project that is multi threaded running about 8 threads. Most of the ssh calls are very short calls looking for files, verifying size, doing a delete here and there though the process. However on calls that are compressing the file which can take up to 45+ minutes the task gets stuck on execute.
It never gets a response back so I can not confirm it was completed. It does not happen all the time and i am not sure what to do next. I get no error just hangs on move_tar_result = move_tar_file.Execute().
I have asked if there were max connections or a timeout and the system admin said no. Maybe there is a better way?
Using client = New SshClient(My.Resources.ssh_host, My.Resources.ssh_user, My.Resources.ssh_pwd)
client.Connect()
client.KeepAliveInterval = New TimeSpan(0, 0, 5)
Dim move_tar_file = client.RunCommand("/bin/tar -czvf " & destination_path & "/" & file_name & ".tgz -C " & source_path & "/ " & file_name)
Dim move_tar_result = move_tar_file.Execute()
Dim move_tar_response = ssh_response(move_tar_file, move_tar_result, "DEBUG: Moving File and Taring File")
If move_tar_response.Contains("/bin/tar: Exiting with failure status due to previous errors") Then
file_result = False
Else
set_file_permission(destination_path & "/" & file_name & ".tgz")
file_result = True
End If
client.Disconnect()
End Using
Metadata
Metadata
Assignees
Labels
No labels