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:[EMAIL PROTECTED] 
Sent: Monday, April 03, 2006 3:08 PM
To: [EMAIL PROTECTED]
Cc: 'Squid Users'
Subject: RE: [squid-users] 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

Reply via email to