Group: Forum Members
Posts: 7,
Visits: 17
|
Hi, in relation to this/Alex Qiu's post, what we are looking for is a "-oTransmitTimeout" setting/option.
What we have sometimes encountered is that during the transmission of a file with sftp.exe, the transmission just 'hangs', and sits there indefinitely. We suspect that our client is not getting or is somehow losing the ACK packet from the server, so the sftp just waits forever. What typically happens for us, is that the Windows task we are using to run the file transfer, reaches its defined maximum run time, so the task just gets killed when that happens, but this is not at all helpful and our sftp script does not get the opportunity to handle the issue gracefully.
So what we would like is to be able to set an option to specify the maximum amount of time for the sftp program to wait during a file transmission. And then just produce an error and exit (or perhaps move onto the next file in a batch) if it reaches the timeout.
Can you pls advise whether we can have this feature as well (or if it already exists in some form - using 'keepalive' maybe?) in the sftp program?
|