udp logging in 2.HEAD

From: Adrian Chadd <adrian@dont-contact.us>
Date: Sun, 23 Sep 2007 23:38:02 +0800

G'day,

I've committed a version of the patch Tim Starling (Wikipedia) wrote
to squid-2.HEAD. It -almost- works; I'm seeing lines like this:

1190560927.196 4526 192.168.1.7 TCP_MISS/504 317 GET http://192.168.1.7:8080/w10953a8c.27fa10d3:00000006/t01/_1190560927.196 2848 192.168.1.7 TCP_MISS/504 317 GET http://192.168.1.7:8080/w10953a8c.27fa10d3:00000006/t01/_0000010c - DIRECT/192.168.1.7 text/html

I'm sure its to do with incomplete/incorrect logfile API use on my
part (hm, using my own API wrong, how amusing) so I'll try to fix
it when I get some more time. I'm guessing its because the logfile
line start/end bits aren't being called and a partial line is being
written to a UDP packet without the remainder of the line making it
into the next one.

If someone would like to beat me to it then please, by all means.
:)

To use, try:

access_log udp://ip:port

(or for the logfile daemon, access_log daemon:/path/to/file.)

Adrian
Received on Sun Sep 23 2007 - 09:33:09 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:05 MDT