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

Alexander Lukyanov <[email protected]>
Newsgroups gmane.network.lftp.user
Message-ID <CANnoEwokZpDV4eQ-BLBh+ZrHTUO20QF=2aah2EFv1tJWBeT6BA@mail.gmail.com>
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 <[email protected]>:

> 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:
> >>
> >> ---- Got EOF on data connection
> >> ---- Closing data socket
> >> <--- 426 Failure writing network stream.
> >> ---- received all data but no EOF
> >
> > Please test this change.
>
> 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 using lftp interactively instead of via a
> script.  After issuing the close command, I receive the "221 Goodbye."
> response from the server, and an lftp command prompt.  But I can't type
> anything at the prompt.  I type "exit" on the keyboard, but it is not
> echoed on the screen.  The whole program appears to be hung.  Eventually,
> after several minutes, I get a "closing idle connection" message and
> the exit command shows up on the screen, followed by program termination.
> I rather doubt that this last patch is responsible.  I think it's something
> in how the close command is processed.  It has to work in both TLS and
> non-TLS environments.  It currently seems to have a problem in non-TLS
> environments.
>
> --
>   .''`.     Stephen Powell    <[email protected]>
>  : :'  :
>  `. `'`
>    `-
> _______________________________________________
> 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
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.