]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
hno squid-2.3.DEVEL3.ftp_EAGAIN_loglevel.patch
authorhno <>
Wed, 3 May 2000 02:25:33 +0000 (02:25 +0000)
committerhno <>
Wed, 3 May 2000 02:25:33 +0000 (02:25 +0000)
Squid-2.3.DEVEL3: FTP log level adjustment for ignored "errors"

Use log level 3 on ignored read-"errors" like EAGAIN (was 1).

src/ftp.cc

index 7994319196461a2d9b3e541c907588a28ab9d538..723bcbec92ce6b7eeeac3262019540a58ddc245a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.290 2000/05/02 20:20:10 hno Exp $
+ * $Id: ftp.cc,v 1.291 2000/05/02 20:25:33 hno Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -896,7 +896,7 @@ ftpDataRead(int fd, void *data)
        ftpListingStart(ftpState);
     }
     if (len < 0) {
-       debug(50, 1) ("ftpDataRead: read error: %s\n", xstrerror());
+       debug(50, ignoreErrno(errno) ? 3 : 1) ("ftpDataRead: read error: %s\n", xstrerror());
        if (ignoreErrno(errno)) {
            commSetSelect(fd,
                COMM_SELECT_READ,
@@ -1247,7 +1247,7 @@ ftpReadControlReply(int fd, void *data)
     }
     debug(9, 5) ("ftpReadControlReply: FD %d, Read %d bytes\n", fd, len);
     if (len < 0) {
-       debug(50, 1) ("ftpReadControlReply: read error: %s\n", xstrerror());
+       debug(50, ignoreErrno(errno) ? 3 : 1) ("ftpReadControlReply: read error: %s\n", xstrerror());
        if (ignoreErrno(errno)) {
            ftpScheduleReadControlReply(ftpState, 0);
        } else {