--------------------- PatchSet 308 Date: 2000/05/16 19:28:56 Author: hno Branch: hno-devel Tag: (none) Log: Tuned the log level selection on SSL client read errors somewhat. ECONNRESET -> 2 ignoreErrno() -> 3 else -> 1 Members: src/ssl.c:1.1.1.3.10.3.2.2->1.1.1.3.10.3.2.3 Index: squid/src/ssl.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/ssl.c,v retrieving revision 1.1.1.3.10.3.2.2 retrieving revision 1.1.1.3.10.3.2.3 diff -u -r1.1.1.3.10.3.2.2 -r1.1.1.3.10.3.2.3 --- squid/src/ssl.c 14 May 2000 23:22:19 -0000 1.1.1.3.10.3.2.2 +++ squid/src/ssl.c 16 May 2000 19:28:56 -0000 1.1.1.3.10.3.2.3 @@ -1,6 +1,6 @@ /* - * $Id: ssl.c,v 1.1.1.3.10.3.2.2 2000/05/14 23:22:19 hno Exp $ + * $Id: ssl.c,v 1.1.1.3.10.3.2.3 2000/05/16 19:28:56 hno Exp $ * * DEBUG: section 26 Secure Sockets Layer Proxy * AUTHOR: Duane Wessels @@ -246,7 +246,14 @@ } cbdataLock(sslState); if (len < 0) { - debug(50, ECONNRESET == errno ? 3 : 1) ("sslReadClient: FD %d: read failure: %s\n", + int level = 1; +#ifdef ECONNRESET + if (errno == ECONNRESET) + level = 2; +#endif + if (ignoreErrno(errno)) + level = 3; + debug(50, level) ("sslReadClient: FD %d: read failure: %s\n", fd, xstrerror()); if (!ignoreErrno(errno)) comm_close(fd);