]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
date: 2003/01/02 23:24:22; author: wessels; state: Exp; lines: +3 -1
authorhno <>
Sat, 4 Jan 2003 08:12:49 +0000 (08:12 +0000)
committerhno <>
Sat, 4 Jan 2003 08:12:49 +0000 (08:12 +0000)
add more debugging on "htcpHandle: sz != htcpHdr.length" error
(sizes, host, port)

src/htcp.cc

index 93fbffdf242a0f1a519bc98e25832a41c80a75ec..d45fe8351f9ec4230cfbc74d212b552bf432846d 100644 (file)
@@ -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);