Timeout errors when using CFFTP tag
Posted by zz-James Moir on 21 June 2016 04:06 PM
When creating an FTP session with CFFTP tag you receive the following error:
An error occurred during the FTP putfile operation. Error: putFile operation exceeded TIMEOUT. java.io.IOException: putFile operation exceeded TIMEOUT
The default timeout for FTP commands is 30 seconds.
Increase the timeout by adding the value, timeout="valueinseconds", to the CFFTP "open" command.
Here is an example:
<cfftp action="open" connection="objConnection3" timeout="300" attributeCollection="#objFTPProperties#" />
Note that you will also need to add the same value, requesttimeout="valueinseconds" to the CFSETTING tag.
<cfsetting requesttimeout="300" />