]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
TCP log: flush stream on every line
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 25 Mar 2011 09:05:41 +0000 (22:05 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 25 Mar 2011 09:05:41 +0000 (22:05 +1300)
TCP logging has a buffer which can catch log traffic peaks.
per-line flushing is required to prevent the log data accumulating under
low loads.

src/log/ModTcp.cc

index 4f5275c8745f8f896e8e8a3710622d633805e0bf..4bda83edb6fcf351014501d145c54706c275bd8c 100644 (file)
@@ -118,6 +118,7 @@ logfile_mod_tcp_linestart(Logfile * lf)
 static void
 logfile_mod_tcp_lineend(Logfile * lf)
 {
+    logfile_mod_tcp_flush(lf);
 }
 
 static void