On Fri, Sep 12, 2014 at 07:06:02PM -0400, Stephen Powell wrote: > With "set ftp:use-quit yes" in effect, which is the default value for this > option, > lftp will issue the QUIT command to the server in response to an lftp "close" > command. But lftp does not wait for the server to respond with the "221 > Goodbye" > message before closing the control connection. Sometimes, the message arrives > before lftp can get the control connection closed, and sometimes it doesn't. > This results in inconsistent debug output. If the server is broken, and > doesn't > send the "221 Goodbye" message, a timeout should eventually occur, of course, > and the control connection can then be closed. Or the problem can be > circumvented > by using the "set ftp:use-quit no" command. But if you're going to issue the > QUIT command, you really should wait a reasonable amount of time for a > response, > for consistency. Failing to wait for a response may also cause problems for > the > server, if it does not recover well from an error in sending the 221 message.
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? -- Alexander. _______________________________________________ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp