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

2014-10-03 Thread Stephen Powell
On Tue, 30 Sep 2014 01:14:23 -0400 (EDT), Alexander V. Lukyanov wrote: You can use gdb instead of pstack: $ gdb lftp PID ...attached... (gdb) bt OK, here's the results from using gdb, but I don't know how useful it is. There's a lot of ?? labels. As a review, I enter

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

2014-10-03 Thread Alexander V. Lukyanov
On Fri, Oct 03, 2014 at 06:31:59AM -0400, Stephen Powell wrote: On Tue, 30 Sep 2014 01:14:23 -0400 (EDT), Alexander V. Lukyanov wrote: You can use gdb instead of pstack: $ gdb lftp PID ...attached... (gdb) bt OK, here's the results from using gdb, but I don't know how

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

2014-09-29 Thread Stephen Powell
On Fri, 26 Sep 2014 02:59:38 -0400 (EDT), Alexander Lukyanov wrote: On Thu, 25 Sep 2014 22:26:00 -0400 (EDT), Stephen Powell wrote: Yes, the patch worked, for this specific test case. But I am having a problem connecting to a different server which does not support TLS. In this case, I'm

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

2014-09-29 Thread Alexander V. Lukyanov
On Mon, Sep 29, 2014 at 08:57:23PM -0400, Stephen Powell wrote: I cannot reproduce it. Please use strace on the lftp process, also use pstack PID on it and send me the output. I can reproduce the problem if I run the lftp command directly at a shell prompt, but if I run the lftp command

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

2014-09-26 Thread Alexander Lukyanov
I cannot reproduce it. Please use strace on the lftp process, also use pstack PID on it and send me the output. 2014-09-26 6:26 GMT+04:00 Stephen Powell zlinux...@wowway.com: On Tue, 23 Sep 2014 01:49:57 -0400 (EDT), Alexander V. Lukyanov wrote: On Mon, Sep 22, 2014 at 10:02:29PM -0400,

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

2014-09-25 Thread Stephen Powell
On Tue, 23 Sep 2014 01:49:57 -0400 (EDT), Alexander V. Lukyanov wrote: On Mon, Sep 22, 2014 at 10:02:29PM -0400, Stephen Powell wrote: I tried setting both of these server options to yes and tried my get with lftp again. The last few lines of output in the debug file are now as follows:

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

2014-09-22 Thread Stephen Powell
On Fri, 19 Sep 2014 02:22:08 -0400 (EDT), Alexander Lukyanov wrote: On 2014-09-19 3:24 GMT+04:00 Stephen Powell wrote: As to your claim that the new development snapshot of lftp does indeed send a close_notify alert to the server prior to closing the control connection when TLS is used, I

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

2014-09-22 Thread Alexander V. Lukyanov
On Mon, Sep 22, 2014 at 10:02:29PM -0400, Stephen Powell wrote: I tried setting both of these server options to yes and tried my get with lftp again. The last few lines of output in the debug file are now as follows: Got EOF on data connection Closing data socket --- 426 Failure

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

2014-09-19 Thread Alexander Lukyanov
Look for gnutls_bye (gnutls) or SSL_shutdown (openssl) calls. See https://github.com/lavv17/lftp/commit/fc468dc987cb45bab4a3d31a1e832601bc239774 for the change. 2014-09-19 3:24 GMT+04:00 Stephen Powell zlinux...@wowway.com: As to your claim that the new development snapshot of lftp does indeed

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

2014-09-18 Thread Stephen Powell
On Thu, 18 Sep 2014 06:55:52 -0400 (EDT), Alexander V. Lukyanov wrote: On Wed, Sep 17, 2014 at 09:38:10PM -0400, Stephen Powell wrote: Of course, to avoid errors on the server, lftp is sending a close_notify alert before closing the write side of the connection on its end, right? I have

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

2014-09-17 Thread Alexander Lukyanov
Can you send me a sample of the script? 2014-09-17 6:36 GMT+04:00 Stephen Powell zlinux...@wowway.com: 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.

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

2014-09-17 Thread Alexander Lukyanov
Here is an additional patch to wait for QUIT reply after close command. 2014-09-17 10:50 GMT+04:00 Alexander Lukyanov lavv...@gmail.com: 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

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

2014-09-17 Thread Stephen Powell
On Wed, 17 Sep 2014 02:55:36 -0400 (EDT), Alexander Lukyanov wrote: Here is an additional patch to wait for QUIT reply after close command. OK, now the problem is fixed. But I'm now getting an error message that I wasn't getting before. The last four lines of debug output are as follows:

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

2014-09-16 Thread Alexander Lukyanov
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 zlinux...@wowway.com: 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

[lftp] lftp does not wait for 221 Goodbye message before closing control connection

2014-09-15 Thread Stephen Powell
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,

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

2014-09-15 Thread Alexander V. Lukyanov
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

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

2014-09-15 Thread Stephen Powell
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