Re: squid 2.0.2 and FTP site full

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sun, 15 Nov 1998 19:48:59 +0100

Miquel van Smoorenburg wrote:

> 421 Sorry, ftp1.gamesdomain.com already has 102 users logged on. Try again in 10 minutes.
...
> Squid sent the following FTP command:
>
> and then received this reply
...

> Is this bug known, and is there a fix for it or should I start
> digging into the code myself? My users are bugging me about this ..

It's more or less a known bug. Try attached patch.

---
Henrik Nordstrom
Spare time Squid hacker

Index: squid/src/ftp.c
diff -u squid/src/ftp.c:1.1.1.27.4.2 squid/src/ftp.c:1.1.1.27.4.3
--- squid/src/ftp.c:1.1.1.27.4.2 Sat Nov 14 02:45:00 1998
+++ squid/src/ftp.c Sun Nov 15 19:47:27 1998
@@ -1004,6 +1004,7 @@
         ftpState->user, ftpState->password);
     comm_add_close_handler(fd, ftpStateFree, ftpState);
     ftpState->state = BEGIN;
+ ftpState->ctrl.last_command = xstrdup("Connect to server");
     ftpState->ctrl.buf = memAllocate(MEM_4K_BUF);
     ftpState->ctrl.freefunc = memFree4K;
     ftpState->ctrl.size = 4096;
Received on Sun Nov 15 1998 - 11:40:46 MST

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