From: hno <> Date: Sat, 4 Jan 2003 08:12:49 +0000 (+0000) Subject: date: 2003/01/02 23:24:22; author: wessels; state: Exp; lines: +3 -1 X-Git-Tag: SQUID_3_0_PRE1~480 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4474f022df2bcdaec5be1f1298ab6003677509c1;p=thirdparty%2Fsquid.git date: 2003/01/02 23:24:22; author: wessels; state: Exp; lines: +3 -1 add more debugging on "htcpHandle: sz != htcpHdr.length" error (sizes, host, port) --- diff --git a/src/htcp.cc b/src/htcp.cc index 93fbffdf24..d45fe8351f 100644 --- a/src/htcp.cc +++ b/src/htcp.cc @@ -1,6 +1,6 @@ /* - * $Id: htcp.cc,v 1.47 2002/10/21 09:31:55 hno Exp $ + * $Id: htcp.cc,v 1.48 2003/01/04 01:12:49 hno Exp $ * * DEBUG: section 31 Hypertext Caching Protocol * AUTHOR: Duane Wesssels @@ -878,7 +878,9 @@ htcpHandle(char *buf, int sz, struct sockaddr_in *from) debug(31, 3) ("htcpHandle: htcpHdr.major = %d\n", (int) htcpHdr.major); debug(31, 3) ("htcpHandle: htcpHdr.minor = %d\n", (int) htcpHdr.minor); if (sz != htcpHdr.length) { - debug(31, 1) ("htcpHandle: sz != htcpHdr.length\n"); + debug(31, 1) ("htcpHandle: sz/%d != htcpHdr.length/%d from %s:%d\n", + sz, htcpHdr.length, + inet_ntoa(from->sin_addr), (int) ntohs(from->sin_port)); return; } buf += sizeof(htcpHeader);