From 4474f022df2bcdaec5be1f1298ab6003677509c1 Mon Sep 17 00:00:00 2001 From: hno <> Date: Sat, 4 Jan 2003 08:12:49 +0000 Subject: [PATCH] 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) --- src/htcp.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.47.3