On Wed, Jun 01, 2011 at 06:57:20PM +0200, Fernando Gutierrez wrote: > **Problem: > Let's pretend rc has "set cmd:parallels 2;", so we are sure > max_waiting=2 (otherwise max_waiting may never be updated as I > explained in my previous mail). > When invoking lftp with "lftp -c 'get http://file1;get > http://file2;get http://file3;' , the files won't be downloaded in > parallel (2 at a time). Get is an example, my point is commands are > not executed in parallel when they are sent to lftp as arguments. > > After the initial filefeeder (made when rc is read) dies, > CmdExec::Do() returns too early. > > As it has no feeder, it returns in the following code, due to feeder==null: > if(m != STALL || interactive || !feeder || waiting_num >= max_waiting) > return m;
Nice catch! I've applied the patch. -- Alexander.