Re: lftp does not wait for "221 Goodbye" message before closing control connection

Alexander Lukyanov <[email protected]>
Newsgroups gmane.network.lftp.user
Message-ID <CANnoEwpXpsCZV=1Tjdikos24c-qYFqwAagaTVFo3099yivtS-Q@mail.gmail.com>
Here is an additional patch to wait for QUIT reply after "close" command.

2014-09-17 10:50 GMT+04:00 Alexander Lukyanov <[email protected]>:

> Ok, I could reproduce the proble you see. For now try to remove the
> "close" command from the script.
>
> 2014-09-17 10:47 GMT+04:00 Alexander Lukyanov <[email protected]>:
>
>> Can you send me a sample of the script?
>>
>> 2014-09-17 6:36 GMT+04:00 Stephen Powell <[email protected]>:
>>
>>> On Tue, 16 Sep 2014 02:38:21 -0400 (EDT), Alexander Lukyanov wrote:
>>> >
>>> > Here is a patch to make lftp wait for QUIT reply at exit.  I think to
>>> avoid
>>> > lingering one can set use-quit no.
>>>
>>> OK.  Thanks for the patch.  But it does not work as intended.  It doesn't
>>> seem to break anything, but neither does it fix anything.  I still don't
>>> get the "221 Goodbye." message most of the time.  Most of the time, the
>>> control connection gets closed before the 221 message arrives.  In order
>>> to get the 221 message consistently, I have to add a delay to the end of
>>> the script.  For example,
>>>
>>> !sleep 1
>>>
>>> This introduces enough delay that the 221 message arrives prior to
>>> shutdown.
>>> But this is a kludge.  I shouldn't have to do that.
>>>
>>> --
>>>   .''`.     Stephen Powell
>>>  : :'  :
>>>  `. `'`
>>>    `-
>>> _______________________________________________
>>> lftp mailing list
>>> [email protected]
>>> http://univ.uniyar.ac.ru/mailman/listinfo/lftp
>>>
>>
>>
>>
>> --
>>    Alexander.
>>
>
>
>
> --
>    Alexander.
>



-- 
   Alexander.

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp
diff1 (application/octet-stream, 660 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.