Re: perl

2006-02-20 Thread abc
thank you for your reply.
i would be happy to help and write what is required.
i am very proficient with awk - but i do not know
exactly what the perl scripts do - i don't know
perl.  if you could specify the I/O requirements
of the scripts, and what files they operate upon,
i would be happy to do the work.

Thank you,

Chad

  I wish you wouldn't require perl to compile
  squid.  Personally, I don't like perl, and I
  don't have it on my machines, and I think
  it would be best to allow people to compile
  squid without it.  I am sure it's doable.
  Why not just use awk/sh or something?
 
 patches eleminating the build dependency on perl is welcome.
 
 we already use awk for other purposes (src/cf_gen_defines) so rewriting
 the two build time perl scripts into awk would be the natural choice..
 
src/mk-globals.pl
src/mk-string-arrays.pl
 
 but please keep in mind that awk is perhaps even less standard than perl,
 with slightly different awk dialects on different OS:es.. (awk/nawk/gawk
 and more)..
 
 Regards
 Henrik


Re: Helper statistics oddity in both 2.5 and 3.0

2006-02-20 Thread Guido Serassio

Hi Henrik,

At 01.13 20/02/2006, Henrik Nordstrom wrote:


On Fri, 17 Feb 2006, Guido Serassio wrote:

Looking for bug #1506, I have found some oddity in the helper 
statistics in both Squid 2.5 and 3.0:

http://www.squid-cache.org/bugs/show_bug.cgi?id=1506

What should be the meaning of the time column ?


Good question..

the intentions of the column is primary to show how long a blocking 
request has been running, and second to show how long since the 
helper was last used. With this definition it should show


   now - time_when_last_request_was_sent

for unused helpers this equation does not work out that well.. so 
there we should show unused, none  or simething similar..


OK, now is clear. So in 2.5 the statistics for standard helpers are incorrect.


Now, another question is if this makes sense.. can produce somewhat 
confusing numbers as it's effectively overloading two semantically 
different values in the same column, and even more so on stateful 
helpers due to them being reserved waiting for the client..


And there is another problem: the range of the values can be very 
large, starting from milliseconds to minutes: very confusing.


I have a proposal:

- In the time column to place always the time (in seconds) from the 
last usage, if any
- In the flags column, for the 'B' flag, use a 'B:time' syntax for 
the blocking time (in milliseconds)


This should be less confusing.

Regards

Guido



-

Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Lucia Savarino, 1   10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135  Fax. : +39.011.9781115
Email: [EMAIL PROTECTED]
WWW: http://www.acmeconsulting.it/



Re: cvs commit: squid3/src cache_manager.cc client_side_reply.cc

2006-02-20 Thread Reuben Farrelly



On 21/02/2006 1:49 a.m., Guido Serassio wrote:

Hi,

At 00.37 20/02/2006, Reuben Farrelly wrote:

wessels 2006/02/17 13:15:35 MST
  Modified files:
src  cache_manager.cc 
client_side_reply.cc  errorpage.cc ftp.cc 
http.cc internal.cc  mime.cc net_db.cc 
store.cc  store_digest.cc urn.cc whois.cc   Log:

  Replaced the single-line wrapper function storeEntryReplaceObject
  with direct calls to StoreEntry-replaceHttpReply();



Seeing this in squid-3-cvs:(may have been caused by the above commit)

g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\/etc/squid/squid.conf\ 
-I. -I. -I../include -I. -I. -I../include -I../include 
-I../lib/libTrie/include -I../lib/cppunit-1.10.0/include -I 
../lib/cppunit-1.10.0/include -I/usr/kerberos/include  -Werror -Wall 
-Wpointer-arith -Wwrite-strings -Wcomments  -D_REENTRANT -g -O2 -c -o 
ftp.o ftp.cc
ftp.cc:202: error: extra qualification 'FtpStateData::' on member 
'writeCommand'

make[3]: *** [ftp.o] Error 1
make[3]: Leaving directory `/usr/src/squid/squid-3.0/src'
make[2]: *** [all-recursive] Error 1

Can you take a look please?  This is with gcc version 4.1.0 20060214 
(Red Hat 4.1.0-0.27).


It should be fixed now.


It is, and now compiles through.

I think we've had a few other changes that look just like that for gcc-4.1 
too


Thanks Guido,
Reuben


Re: perl

2006-02-20 Thread Henrik Nordstrom



On Sun, 19 Feb 2006 [EMAIL PROTECTED] wrote:


thank you for your reply.
i would be happy to help and write what is required.
i am very proficient with awk - but i do not know
exactly what the perl scripts do - i don't know
perl.  if you could specify the I/O requirements
of the scripts, and what files they operate upon,
i would be happy to do the work.


The two scripts just derives some trivial parts of the code.

mk-globas-c.pl transfroms globals.h into a C file actually defining the 
variables with the values taken from the comments.


I.e.

extern FILE *debug_log; /* NULL */

becomes

FILE *debug_log = NULL;

etc.



mk-string-arrays.pl creates arrays of strings from selected enum 
definitions (the four listed at the beginning of the script).


i.e.

enum err_type {
ERR_NONE,
ERR_READ_TIMEOUT,
...

becomes

const char *err_type_str[] {
ERR_NONE,
ERR_READ_TIMEOUT,
...

Regards
Henrik


Introducing myself

2006-02-20 Thread Cleber Rodrigues
Hi there all you squid tamers!

I'm Cleber Rodrigues, from Brazil, and I'm interested in following squid
development, and hopefully help along.

Our company, Global Red, is a genuine FOSS company, and we have been
developing some extra features that our customers and our projects
require.

One of these, is available at:

http://nop.globalred.com.br/svn/gr-netservices/gr-webproxy/squid/squid-2.5.STABLE6-access_log_exclude.patch

We call it AccessLogExclude, and allows for ACLs to define some accesses
that will not be logged. Maybe there's something out there that already
does this, maybe not. That's exactly why I want to get closer to the dev
team. 

Hope that's enough for now, and thanks a lot for your time and patience.

-- 
Cleber Rodrigues
[EMAIL PROTECTED]