From: hno <> Date: Sun, 14 Apr 2002 04:56:21 +0000 (+0000) Subject: Mark successfull FTP transfers as complete to allow them to stay in the X-Git-Tag: SQUID_3_0_PRE1~1079 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ccf0f36715ac3cd9a8b4d11a29ab965f3937f9d;p=thirdparty%2Fsquid.git Mark successfull FTP transfers as complete to allow them to stay in the cache. --- diff --git a/src/ftp.cc b/src/ftp.cc index 05f91287fb..9eca0258d8 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -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",