Search squid archive

RE: Custom Log

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

 



Hi.

Just out of curiosity. With mime hdr logging turned on, what kind of performance hit are we looking
at?

Regards
/Cole 

-----Original Message-----
From: Henrik Nordstrom [mailto:henrik@xxxxxxxxxxxxxxxxxxx] 
Sent: Monday, April 03, 2006 3:08 PM
To: cole@xxxxxxxxxxxx
Cc: 'Squid Users'
Subject: RE:  Custom Log

mån 2006-04-03 klockan 10:56 +0200 skrev Cole:

> Ive updated the access_log.c file to look something like this :
>         case LFT_REQUEST_SIZE_TOTAL:  
>             outint = strlen(al->headers.request) + strlen(al->private.method_str) +
strlen(al->url);
>             doint = 1;
>             break;
> 
> Is that correct so far?

Looks reasonable.

> Also when you speak about the Content-Length request header, which specific structure holds this
> value?

See LFT_REQUEST_HEADER_ELEM. The Content-Length header have the internal
id HDR_CONTENT_LENGTH. Also it's a size field so it's easier to get by
using httpHeaderGetSize() function. Be warned that -1 is returned if
there is no content-legnth header.

Regards
Henrik



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

  Powered by Linux