--------------------- PatchSet 1941 Date: 2005/10/07 22:40:54 Author: rousskov Branch: squid3-icap Tag: (none) Log: - Added debugging. Members: src/http.cc:1.49.2.45->1.49.2.46 Index: squid3/src/http.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/http.cc,v retrieving revision 1.49.2.45 retrieving revision 1.49.2.46 diff -u -r1.49.2.45 -r1.49.2.46 --- squid3/src/http.cc 5 Oct 2005 17:46:57 -0000 1.49.2.45 +++ squid3/src/http.cc 7 Oct 2005 22:40:54 -0000 1.49.2.46 @@ -1,6 +1,6 @@ /* - * $Id: http.cc,v 1.49.2.45 2005/10/05 17:46:57 rousskov Exp $ + * $Id: http.cc,v 1.49.2.46 2005/10/07 22:40:54 rousskov Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -1227,12 +1227,17 @@ */ int icap_space = icap->potentialSpaceSize(); + debugs(11,9, "HttpStateData may read up to min(" << icap_space << + ", " << read_sz << ") bytes"); + if (icap_space < read_sz) read_sz = icap_space; } #endif + debugs(11,9, "HttpStateData may read up to " << read_sz << " bytes"); + /* * why <2? Because delayAwareRead() won't actually read if * you ask it to read 1 byte. The delayed read request