Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Douglas

Re: Session reconnect

it worked for me, thanks
kyokum

Session reconnect

When scripting, I would like to specify that the session attempt to reconnect if it cannot connect initially. It would solve a problem I had recently. My script was setup to transfer a file. However, when attempting to connect, the script logged this:

Using username "<username>".

Waiting for data timed out, asking user what to do.
Asking user:
**Host is not communicating for 15 seconds.
 Wait for another 15 seconds?** ()
Attempt to close connection due to fatal exception:
**Terminated by user.**
Closing connection.
Sending special code: 12

I think the FTP site was not accepting connections at that time. Another script connected fine fifteen minutes later and transferred a file. Would I use /rawconfig Interface\SessionReopenAuto or something else to keep attempting to connect? Can I set the number of retries?