Re: lftp does not wait for "221 Goodbye" message before closing control connection
Alexander Lukyanov <[email protected]>
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <CANnoEwr6C2qbTkRNeJ6vkex8j3+pR+zRokBm4-s9EHWNdHm-RQ@mail.gmail.com> |
Here is a patch to make lftp wait for QUIT reply at exit. I think to avoid lingering one can set use-quit no. 2014-09-16 3:44 GMT+04:00 Stephen Powell <[email protected]>: > On Mon, 15 Sep 2014 05:04:36 -0400 (EDT), Alexander V. Lukyanov wrote: > > > > As far as I can tell, lftp does not wait for QUIT reply only when it > > exits. Is it really necessary to linger at exit to wait for clean > > connection shutdown? > > Well, I don't know if "necessary" is the right word; but it is the > expected behavior to wait for a 221 reply to the QUIT command before > closing the control connection. That's what all other FTP clients do. > On the other hand, lftp has a long-standing tradition of being as > asynchronous as possible and as fast as possible, and I respect > that tradition as well. > > I propose a compromise. Let's introduce a new "set" variable. Maybe > we could call it ftp:wait-for-goodbye, or something along those lines. > It would be a boolean variable. You could make its default value "no" > for forward compatibility with the current behavior. If set to "yes", > then lftp will wait for a "221 Goodbye." message to be received in > response to the QUIT command before closing the control connection. > What do you think? > > -- > .''`. Stephen Powell > : :' : > `. `'` > `- > _______________________________________________ > lftp mailing list > [email protected] > http://univ.uniyar.ac.ru/mailman/listinfo/lftp > -- Alexander. _______________________________________________ lftp mailing list [email protected] http://univ.uniyar.ac.ru/mailman/listinfo/lftp
diff
(application/octet-stream, 745 B) - not displayed