--------------------- PatchSet 11932 Date: 2008/01/23 15:31:51 Author: hno Branch: SQUID_2_7 Tag: (none) Log: MFC: Fix a race in internally generated replies. Need to buffer the response until it's complete. Members: src/HttpReply.c:1.65->1.65.2.1 Index: squid/src/HttpReply.c =================================================================== RCS file: /cvsroot/squid/squid/src/HttpReply.c,v retrieving revision 1.65 retrieving revision 1.65.2.1 diff -u -r1.65 -r1.65.2.1 --- squid/src/HttpReply.c 13 Dec 2007 01:20:48 -0000 1.65 +++ squid/src/HttpReply.c 23 Jan 2008 15:31:51 -0000 1.65.2.1 @@ -1,6 +1,6 @@ /* - * $Id: HttpReply.c,v 1.65 2007/12/13 01:20:48 hno Exp $ + * $Id: HttpReply.c,v 1.65.2.1 2008/01/23 15:31:51 hno Exp $ * * DEBUG: section 58 HTTP Reply (Response) * AUTHOR: Alex Rousskov @@ -172,6 +172,10 @@ Packer p; assert(rep && e); + /* storeBuffer should have been done by the caller, but do it here just in case as things + * break badly if not + */ + storeBuffer(e); if (rep != e->mem_obj->reply) { httpReplyAbsorb(e->mem_obj->reply, rep); rep = e->mem_obj->reply;