--------------------- PatchSet 10395 Date: 2008/01/13 15:42:20 Author: adri Branch: s27_adri Tag: (none) Log: Only grow by 8k for now; this stops the realloc calls from src/http.c and buf_fill(). I'll tidy this up later. Members: libbuf/buf.c:1.1.2.10->1.1.2.11 Index: squid/libbuf/buf.c =================================================================== RCS file: /cvsroot/squid-sf//squid/libbuf/Attic/buf.c,v retrieving revision 1.1.2.10 retrieving revision 1.1.2.11 diff -u -r1.1.2.10 -r1.1.2.11 --- squid/libbuf/buf.c 3 Jan 2008 15:50:18 -0000 1.1.2.10 +++ squid/libbuf/buf.c 13 Jan 2008 15:42:20 -0000 1.1.2.11 @@ -176,8 +176,8 @@ int ret; /* for now, always make sure there's 16k available space */ debug(85, 5) ("buf_fill: fd %d\n", fd); - if (dogrow && b->size - b->len < 16384) { - if (! buf_changesize(b, b->size + 16384)) { + if (dogrow && b->size - b->len < 8192) { + if (! buf_changesize(b, b->size + 8192)) { /* tsk! */ return -1; }