Question: ColdFusion cfftp getfile exceeds timeout

Question

ColdFusion cfftp getfile exceeds timeout

Answers 1
Added at 2017-01-05 18:01
Tags
Question

I am running CF 11. I have a file on a SFTP server that I want to get. This is a zip file about 60MB in size.

I can get the SFTP connection. However, when I use action="getfile" to get the file to my local. The error that I am getting is, "getFile operation exceeded TIMEOUT". The local file size always stops at around 15MB. I have tried specifying the timeout to 999999 in the cfftp tag, setting passive to false in the cfftp tag, and adding the cfsetting tag to set requesttimeout to 999999. The behavior stays the same.

I have looked everywhere in CF admin and I don't seem to find where this 15MB is specified. Would anybody be able to help me solve this problem please?

Answers
nr: #1 dodano: 2017-01-05 20:01

There are a couple of timers in play here; the FTP timer and the ColdFusion page request timer since you are calling a CFML page to do this.

To increase the ColdFusion timer you need to use the cfsetting tag on the page using the cfftp tag. Like,

<cfsetting requestTimeout="3600" />

To increase the FTP timer you need to use the timeout setting of the cfftp tag itself. What's tricky here is that if you are using a cached FTP connection (using the connection attribute) you need to add the timeout attribute to the open call of your CFFTP tag.

You will need to use both of these settings to increase the overall timeout for these requests.

Source Show
◀ Wstecz