Re: squid logging to a pipe

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sun, 12 Dec 1999 15:46:53 +0100

Jens-S. Vöckler wrote:

> Also remember that writing to a pipe or named pipe without reader
> is blocking the writing process. That would be squid. So it is
> essentially an evil idea, unless you know what you are doing.

Not quite. For all logs except cache.log:

* Squid uses non-blocking writes for the logging process. If the log
can't keep to the speed then Squid will buffer in memory.
* If the log reader terminates then Squid will abort if it tries to log
anything. The log reader process can be restarted IFF squid isn't
logging anything during the restart.
* Squid won't start unless there is a log reader running.

cache.log is a normal blocking STDIO stream, but under normal conditions
not much should be logged there.

--
Henrik Nordstrom
Squid hacker
Received on Sun Dec 12 1999 - 08:25:58 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:49:51 MST