PDA

View Full Version : Upload File Transfer Timeout Configuration


Pratik
03-26-2009, 01:37 PM
Hi,

I am using 'Secure FTP Factory' to transfer the files.

I could not find any option that allows us to configure the timeout for uploading file. I do not want to wait for indefinite time while transferring the file.

Can anybody please help me?


Thanks,
Pratik

mjawwad
03-26-2009, 11:31 PM
Hi Patrick,
Perhaps you could create a thread for uploading the file. Thus your program will be free to perform other tasks while the uploading the file.

Regards,

Pratik
03-27-2009, 05:15 AM
Hi Mohammad,

The thing is that our system is largly dependent on the file transfer. The files are generated and transferrred every second, in realtime and in the order they are created. The remote serer performs some operations on the files received.

So if the file is not transfered within a specified time interval, we need to make several retry attempts. At any point of time the queue of the files being transferred should not grow largly otherwise the whole system will fail.


Thanks & Regards,
Pratik

mjawwad
03-28-2009, 12:33 AM
Does the server has the ability to receive multiple files at once?

D.daura
10-09-2009, 04:49 PM
This very valuable opinion

funkyjive
11-03-2009, 09:42 PM
I believe I am having an issue in the same area, but with an opposite issue. My product has support for FTP and SFTP provided via JScape's Secure FTP Factory.

I used to use another vendor for FTP support for an older version of my product. One of my customers uses my product to upload files to an MVS mainframe. Since they upgraded to the newer version of my product (which uses JScape) they randomly get a "Read time out" issue after the upload has completed.

From the logs, it appears to be waiting for the
250 Transfer completed successfully
but it gives up at some timeout value.

They simply rerun the upload and it succeeds every time. This is problematic for me because they upgraded from an older version of my product and are now having a problem.

I don't know of a way that I can adjust this timeout value. I at least need it to be longer than it is. Help.

mjawwad
11-03-2009, 11:44 PM
Hi funkyjive,

Please note that there were several changes made to the API recently including the FTP/FTPS classes. The new version is close to being released. I will post here when the new versions are out.

Best Regards,

mjawwad
11-05-2009, 05:11 AM
New version of Secure FTP Factory was released on November 3, 2009.
Product link : http://www.jscape.com/sftp/index.html

Best Regards,

funkyjive
11-05-2009, 02:57 PM
I am looking at the new api. I am not certain what I would use to adjust the timeout. There is a setLinger() that would affect the data channel, but I think what the component must be timing out on must be the command channel.

Advice?

mjawwad
11-05-2009, 06:33 PM
Hi funkyjive,

Please submit a ticket to : http://www.jscape.com/support/
Include the source code you are using. In addition please provide the debug logs
by setting setDebug(true); before the connect() call, include any exceptions or stack-trace you are receiving from your code.

Best Regards,