Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.5k views
in .NET FTP by (120 points)
Hi, I'm currently evaluating edtFTPnet/PRO and have a question, which I assume is pretty basic...

I am transferring files to my FTP server asynchronously to allow the UI to be as responsive as possible, but am running into an issue. After each upload, I need to give time for the FTP server to reboot (its an embedded system which does an expected reboot after processing) -- this is not something I can change. I can't upload multiple files back-to-back, I need to upload one, then wait a period for one of my methods to ensure processing is done, then do the next, etc.. For downloading, this isn't an issue and the async is just perfect as is.

Can anyone give me some tips here? I'm obviously using the OnUpload event handler, but with multiple files "queued" it gets hairy as I believe I need to beginConnect() each time since after each file the FTP server is restarting/rebooting.

1 Answer

0 votes
by (162k points)
That's rather interesting server behaviour. Yes, you should probably disconnect and then reconnect in OnUpload in this case.

Categories

...