|Rens| > 0 wrote: > > The FTP connection will be cached, so that I don't have to suffer from > the overhead of the connection process. I need to generate and FTP > almost 20.000 files in one request. The thing is that the remote FTP > deamon will disconnect me after 300 seconds (indicated by a '[pid 3812] > [netmasters2] FTP response: Client "192.168.5.15", "421 Timeout."').
Will it disconnect the data channel, the command channel or both? > 1. Try to upload the file using the existing connection > 2. If [1] fails, then close That is based on the presumption that you can close the existing connection. I don't know anything about the implementation details of FTP in CF, but on the TCP layer just closing the connection can already take up to 4 minutes. > and (re)open the existing connection If closing fails, you can't reopen it. > 3. Try to upload it again > > In pseudo-code: > > <cfftp action="open" /> > > <cfif shitHappened> > <cfftp action="close" /> > <cfftp action="open" /> > </cfif> > I have been Google'ing for days now, but I can't figure out how to > reopen a connection that has been timed out. If anyone could tell me how > to do this, I would be very, very greatful .. Start a brand new connection whenever you are disconnected and use that until you are disconnected again. Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242970 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

