--------------------- PatchSet 8500 Date: 2006/08/16 03:03:59 Author: adri Branch: s26_logfile_daemon Tag: (none) Log: Twiddle the buffer size to match what is going on with logfile-daemon. Members: src/logfile.c:1.12.2.4->1.12.2.5 Index: squid/src/logfile.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/logfile.c,v retrieving revision 1.12.2.4 retrieving revision 1.12.2.5 diff -u -r1.12.2.4 -r1.12.2.5 --- squid/src/logfile.c 8 Aug 2006 09:25:18 -0000 1.12.2.4 +++ squid/src/logfile.c 16 Aug 2006 03:03:59 -0000 1.12.2.5 @@ -35,10 +35,16 @@ #include "squid.h" /* How many buffers to keep before we say we've buffered too much */ -#define LOGFILE_MAXBUFS 64 +#define LOGFILE_MAXBUFS 128 /* Size of the logfile buffer */ -#define LOGFILE_BUFSZ 32768 +/* + * For now its BUFSIZ so it matches the buffer size used in logfile-daemon.c. + * If you wish to tweak this to perform well under extremely high loads + * you should use setvbuf() in logfile-daemon.c to set a buffer thats at + * least as big as what you change this buffer to be. + */ +#define LOGFILE_BUFSZ BUFSIZ /* How many seconds between warnings */ #define LOGFILE_WARN_TIME 30