Re: squid + ftp = degraded performance?

From: Duane Wessels <wessels@dont-contact.us>
Date: Mon, 24 Feb 97 14:08:56 -0800

Strotmann@rrz.Uni-Koeln.DE writes:

>The URL I consistently got this problem with this week is
>ftp://ftp.rand.org (timeout after 200 secs with an 'internal socket
>error', code 500 in the log file), while http://ftp.rand.org (the same
>data, the same machine) answers quickly. (For obvious reasons, I didn't
>try more than twice...)

Yes, ftp.rand.org tickles a ftpget bug. RAND's ftpd claims to support
PASV, but it looks like its blocked by a firewall. This patch helps,
but you still have to suffer the timeout.

Index: ftpget.c
===================================================================
RCS file: /surf1/CVS/squid/src/ftpget.c,v
retrieving revision 1.80
diff -c -r1.80 ftpget.c
*** ftpget.c 1997/02/19 00:06:41 1.80
--- ftpget.c 1997/02/24 22:03:12
***************
*** 1566,1571 ****
--- 1567,1573 ----
        r->errmsg = xmalloc(SMALLBUFSIZ);
        sprintf(r->errmsg, "%s, port %d: %s", junk, port, xstrerror());
        r->rc = 2;
+ pasv_supported = 0;
        return FAIL_SOFT;
      }
      r->dfd = sock;

Duane W.
Received on Mon Feb 24 1997 - 14:26:13 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:34:32 MST