--------------------- PatchSet 430 Date: 2002/12/20 07:29:40 Author: rbcollins Branch: esi Tag: (none) Log: extract method Members: src/ESI.cc:1.1.2.46->1.1.2.47 Index: squid3/src/ESI.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/ESI.cc,v retrieving revision 1.1.2.46 retrieving revision 1.1.2.47 diff -u -r1.1.2.46 -r1.1.2.47 --- squid3/src/ESI.cc 20 Dec 2002 07:12:52 -0000 1.1.2.46 +++ squid3/src/ESI.cc 20 Dec 2002 07:29:40 -0000 1.1.2.47 @@ -1,6 +1,6 @@ /* - * $Id: ESI.cc,v 1.1.2.46 2002/12/20 07:12:52 rbcollins Exp $ + * $Id: ESI.cc,v 1.1.2.47 2002/12/20 07:29:40 rbcollins Exp $ * * DEBUG: section 86 ESI processing * AUTHOR: Robert Collins @@ -1533,14 +1533,8 @@ /* copy the membuf from the reply to outbound */ while (errorprogress < (size_t)rep->body.mb.size) { - size_t amount; appendOutboundData(new ESISegment); - amount = rep->body.mb.size - errorprogress; - if (amount > HTTP_REQBUF_SZ) - amount = HTTP_REQBUF_SZ; - xmemcpy (outboundtail->buf, rep->body.mb.buf + errorprogress, amount); - outboundtail->len = amount; - errorprogress += amount; + errorprogress += outboundtail->append(rep->body.mb.buf + errorprogress, rep->body.mb.size - errorprogress); } /* the esiCode now thinks that the error is the outbound, * and all processing has finished. */