Possible bug: ftp disabled after SIGHUP? (squid-1.NOVM.19)

From: Bjarni R. Einarsson <bre@dont-contact.us>
Date: Thu, 15 Jan 1998 01:49:37 +0000

Hi!

FTP seems to always get disabled when I -USR1 my cache.. and for some
strange reason the cache also thinks it is being -HUP'ed.

And where is that HUP coming from? Am I doing that, or is squid doing that
or after the USR1 or what? I'm not sending any HUPs in crontab or anywhere
else.. (unless squidtimes or calamaris.pl HUP the cache, do they?)

And I don't see why that would matter - FTP shouldn't be disabled just
because Squid gets a HUP right after an USR1 ..

A sample of cache.log:

98/01/13 02:35:00| rotate_logs: SIGUSR1 received.
[switched log files]
98/01/13 02:35:00| storeWriteCleanLog: Starting...
98/01/13 02:35:01| 4096 lines written so far.
98/01/13 02:35:01| 8192 lines written so far.
98/01/13 02:35:01| 12288 lines written so far.
[snip]
98/01/13 02:38:55| 536576 lines written so far.
98/01/13 02:38:55| reconfigure: SIGHUP received
98/01/13 02:38:55| Waiting 30 seconds for active connections to finish
98/01/13 02:39:06| Finished. Wrote 538205 lines.
98/01/13 02:39:06| Took 245 seconds (2196.8 lines/sec).
98/01/13 02:39:06| storeRotateLog: Rotating.
98/01/13 02:39:06| stat_rotate_log: Rotating
98/01/13 02:39:09| FD 45 Closing HTTP connection
98/01/13 02:39:09| FD 46 Closing ICP connection
[snip]
98/01/13 02:39:39| icpHandleUdp: FD 47 recvfrom: (11) Try again
98/01/13 02:39:39| ERR_LIFETIME_EXP: http://209.75.2/
[snip]
98/01/13 02:39:39| ERR_LIFETIME_EXP: http://208.215.62.194/abc-web/spshbck.gif
98/01/13 02:39:39| Restarting Squid Cache (version 1.NOVM.19)...
98/01/13 02:39:39| Started 32 'dnsserver' processes
98/01/13 02:39:39| Accepting HTTP connections on FD 42.
98/01/13 02:39:39| Accepting ICP connections on FD 43.
98/01/13 02:39:39| Accepting ICP connections on FD 44.
98/01/13 02:39:39| Configuring Parent proxy.isnet.is/8088/3130
98/01/13 02:39:39| Ready to serve requests.
98/01/13 02:39:42| Restarting ftpget server...
98/01/13 02:39:42| ftpget server failing too rapidly
98/01/13 02:39:42| WARNING: FTP access is disabled!

Any suggestions would be welcome.. for example, would it be a good idea to
raise the number '2' to something higher, like say, '20' in the following
code stub? Or just disable the disabling entirely?

ftp.c:
------
ftpServerClosed(int fd, void *nodata)
{
    static time_t last_restart = 0;
    comm_close(fd);
    if (squid_curtime - last_restart < 2) {
                                       ^-------------------- here!
            debug(9, 0, "ftpget server failing too rapidly\n");
        debug(9, 0, "WARNING: FTP access is disabled!\n");
        ftpget_server_write = -1;
        ftpget_server_read = -1;
        return;
    }
    last_restart = squid_curtime;
    debug(9, 1, "Restarting ftpget server...\n");
    ftpInitialize();
}

Please reply directly, as I'm not subscribed to the Squid mailing lists.

-- 
Thanks in advance,
Bjarni R. Einarsson
 bre@margmidlun.is              [ THIS SPACE INTENTIONALLY LEFT BLANK ]
 http://www.mmedia.is/~bre
 Juggler@IRC                "Your revolution is a silly idea, yeah." - REM
Received on Wed Jan 14 1998 - 17:55:06 MST

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