From: hno <> Date: Wed, 3 May 2000 02:25:33 +0000 (+0000) Subject: hno squid-2.3.DEVEL3.ftp_EAGAIN_loglevel.patch X-Git-Tag: SQUID_3_0_PRE1~2009 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b3a620c83f66d5d5a8fe82fd1451618d452138e;p=thirdparty%2Fsquid.git hno squid-2.3.DEVEL3.ftp_EAGAIN_loglevel.patch Squid-2.3.DEVEL3: FTP log level adjustment for ignored "errors" Use log level 3 on ignored read-"errors" like EAGAIN (was 1). --- diff --git a/src/ftp.cc b/src/ftp.cc index 7994319196..723bcbec92 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -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 {