On Mon, Dec 26, 2005 at 09:12:51AM +0100, Thomas Pohl wrote:
> Unfortunately, my new web hoster uses
> "ProFTPD 1.2.10 Server". I don't know what it does
> different from other FTP servers, but a simple 'ls'
> takes half a second for each entry/line to be
> listed. What's even worse, lftp does not seem to
> recognize that an 'ls' command has completed and
> waits forever for new data. I attached a log file
Please try this patch.
--
Alexander. | http://www.yars.free.net/~lav/
Index: lftp_ssl.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/lftp_ssl.cc,v
retrieving revision 1.25
diff -u -p -r1.25 lftp_ssl.cc
--- lftp_ssl.cc 22 Nov 2005 12:23:23 -0000 1.25
+++ lftp_ssl.cc 27 Dec 2005 08:42:21 -0000
@@ -541,6 +541,11 @@ int lftp_ssl_gnutls::read(char *buf,int
{
if(res==GNUTLS_E_AGAIN || res==GNUTLS_E_INTERRUPTED)
return RETRY;
+ else if(res==GNUTLS_E_UNEXPECTED_PACKET_LENGTH)
+ {
+ Log::global->Format(7,"gnutls_record_recv: %s; assuming
EOF\n",gnutls_strerror(res));
+ return 0;
+ }
else // error
{
fatal=check_fatal(res);