--------------------- PatchSet 2351 Date: 2005/12/17 15:10:32 Author: nlewycky Branch: prefetching Tag: (none) Log: Fixed bug where we shows 0 bytes for all prefetches in the access.log. Members: src/PrefetchStream.cc:1.1.2.9->1.1.2.10 Index: squid3/src/PrefetchStream.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/Attic/PrefetchStream.cc,v retrieving revision 1.1.2.9 retrieving revision 1.1.2.10 diff -u -r1.1.2.9 -r1.1.2.10 --- squid3/src/PrefetchStream.cc 13 Jun 2005 13:39:43 -0000 1.1.2.9 +++ squid3/src/PrefetchStream.cc 17 Dec 2005 15:10:32 -0000 1.1.2.10 @@ -1,6 +1,6 @@ /* - * $Id: PrefetchStream.cc,v 1.1.2.9 2005/06/13 13:39:43 nlewycky Exp $ + * $Id: PrefetchStream.cc,v 1.1.2.10 2005/12/17 15:10:32 nlewycky Exp $ * * DEBUG: section 93 HTML parsing and fetching * AUTHOR: Nick Lewycky @@ -167,11 +167,10 @@ HttpReply *reply, StoreIOBuffer buffer) { debugs(93, 4, "(PS) bufferData"); - //debugs(93, 4, "reply " << reply << " body " << string(buffer.data, buffer.length)); assert(!req->getConn().getRaw()); - if (req->out.offset) + if (req->out.size) assert(!reply); else { if (reply) { @@ -193,7 +192,7 @@ if (buffer.data && buffer.length) { debugs(93, 4, "(PS) advancing"); - req->out.offset += buffer.length; + req->out.size += buffer.length; } if (!reply && !buffer.data && !buffer.length) {