[lftp-devel] Patch for TLS session resumption with GnuTLS

2014-09-29 Thread Tim Kosse
Hi, the attached patch fixes session resumption if linked against GnuTLS: gnutls_session_get_data can return GNUTLS_E_SHORT_MEMORY_BUFFER even if passed a NULL buffer. Without this patch, lftp cannot list directories or transfer files on FTP servers that require session resumption on the data

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