Search squid archive

Re: Squid logging to UDP logs multiple lines at the same time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/05/18 23:24, Matt Pson wrote:
> 
> 
> ----- Original Message -----
>> From: "Amos Jeffries"
> 
>> On 04/05/18 20:44, Matt Pson wrote:
> 
>>>
>>> This works quite well and logs are sent to the server which receives them and
>>> puts them in the log file as expected. But the logs are not sent line by line
>>> but instead multiple lines at the same time (the size is approx. a UDP packet
>>> of lines, ~1300 bytes) which makes the log file quite messed up.
>>
>> 1400 bytes or your network UDP MSS - whichever is smaller. Squid tries
>> to fit liens in there until one does not fit then sends off the batch.
> 
> So in theory it could work if I set the buffer-size low enough, like 16 bytes, so the log line would never fit in the buffer and thus being sent asap?
> 

In theory, probably. But that would require patching Squid. So it would
be better to add a patch that makes the buffer-size= option work for UDP
instead of having it hard-coded.

Amos
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux