]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
deal with commloops for delay pools
authorrobertc <>
Mon, 14 Oct 2002 14:49:59 +0000 (14:49 +0000)
committerrobertc <>
Mon, 14 Oct 2002 14:49:59 +0000 (14:49 +0000)
src/ftp.cc

index 7899865ed383edf0ae2670e01112faadec164165..0b08f3d2d94b78ea5483a10015ff02046b415f1b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.332 2002/10/14 08:43:46 hno Exp $
+ * $Id: ftp.cc,v 1.333 2002/10/14 08:49:59 robertc Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -2139,7 +2139,7 @@ ftpReadRetr(FtpStateData * ftpState)
        /* XXX what about Config.Timeout.read? */
        size_t read_sz = ftpState->data.size - ftpState->data.offset;
 #if DELAY_POOLS
-       read_sz = delayBytesWanted(delayId, 1, read_sz);
+       read_sz = delayBytesWanted(delayMostBytesAllowed(ftpState->entry->mem_obj), 1, read_sz);
 #endif
        comm_read(ftpState->data.fd, ftpState->data.buf + ftpState->data.offset,
                  read_sz, ftpDataRead, ftpState);