login about faq

after i get the message that the async operation has been finished, i call the disconnect command. after that i would like to connect to a new site and upload other files, but when i call the asyncupload i get "Asynchronous FTP operation already in progress".

how must i handle this? for how long is the async thread alive?

thanks

asked Jul 30 '13 at 13:40

sharkyenergy's gravatar image

sharkyenergy
5081621


The async thread is alive until it finishes.

If you feel that Chilkat component/lib is not behaving properly, such as if an async operation begins but never finishes and it seems that it should've, then please let me know. Chilkat would need to reproduce the problem in order to help in these cases.

link

answered Jul 31 '13 at 11:53

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

it is working as expected but not entirely. as soon as i get the asyncfinished i have to start a timer. i have to wait some time before i start a new upload. if this time is 3 seconds then 1 out of 10 will still fail to start returning the above error. else, if i put a time of 5 seconds between each upload then its working fine and no file fails.. it seems that the background process stays alive for about 2-4 seconds after it finishes uploading.

(Jul 31 '13 at 13:18) sharkyenergy

Wouldn't the purpose of the async be to execute all of your sessions, and then set up and wait for all of them to finish?

link

answered Aug 02 '13 at 10:32

cdlvj130's gravatar image

cdlvj130
9691017

Each FTP object instance can only be having one conversation with an FTP server at a time. You can have multiple FTP object instances, each with it's own connection and conversation, and you can execute asynchronous operations over each FTP object instance simultaneously. However, it makes no sense to be trying to have multiple simultaneous FTP conversations in the same session.

(Aug 02 '13 at 10:37) chilkat ♦♦

if i have 100 files then i cant start 100 async threads.. so i have 8, and as soon as one of them finishes it gets a new file to upload. its like the uploadslots in filezilla.

(Aug 02 '13 at 10:38) sharkyenergy
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×12
×2

Asked: Jul 30 '13 at 13:40

Seen: 1,853 times

Last updated: Aug 02 '13 at 10:38

powered by OSQA