]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Mark successfull FTP transfers as complete to allow them to stay in the
authorhno <>
Sun, 14 Apr 2002 04:56:21 +0000 (04:56 +0000)
committerhno <>
Sun, 14 Apr 2002 04:56:21 +0000 (04:56 +0000)
cache.

src/ftp.cc

index 05f91287fb705d6b63af6133f62c60bd01d01c09..9eca0258d84597f044c0a2d03220fcf10fbd6794 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.318 2002/02/17 00:38:22 hno Exp $
+ * $Id: ftp.cc,v 1.319 2002/04/13 22:56:21 hno Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -2153,6 +2153,8 @@ ftpReadTransferDone(FtpStateData * ftpState)
        /* Connection closed; retrieval done. */
        if (ftpState->flags.html_header_sent)
            ftpListingFinish(ftpState);
+       fwdUnregister(ftpState->ctrl.fd, ftpState->fwd);
+       fwdComplete(ftpState->fwd);
        ftpSendQuit(ftpState);
     } else {                   /* != 226 */
        debug(9, 1) ("ftpReadTransferDone: Got code %d after reading data\n",