Re: Apache-Test subdirectory has moved

2005-02-10 Thread Geoffrey Young

 yay, php docs at perl.apache.org :)

they may be more popular, but I think we still win when it comes to
open-source altruism :)

 sure.  but what I'm hoping to accomplish is a more coherent set of
 documentation for Apache-Test that transcends what we've done (and
 documented well) over in mod_perl-land.  so shuffling things about would
 help that I think.  you?
 
 
 I'm all for it!

cool.  I'm going to spend some time over the next few days trying to get
this situated, then.

 
 should there be Apache-Test/dist too? or should the CPAN distribution be
 sufficient?

we can do that, although http://search.cpan.org/dist/Apache-Test/ is just as
good.  but if we want to mirror the way we do mod_perl then we can have
dist/ as well, no problem.

 
 also we may want to add a /Apache-Test/snapshot for svn-impaired users.

that's a good idea.  I'll see if I can find the snapshot scripts or talk to
whoever I need to to get that setup.

--Geoff


Re: Apache-Test subdirectory has moved

2005-02-10 Thread Stas Bekman
Geoffrey Young wrote:
[...]
cool.  I'm going to spend some time over the next few days trying to get
this situated, then.

should there be Apache-Test/dist too? or should the CPAN distribution be
sufficient?

we can do that, although http://search.cpan.org/dist/Apache-Test/ is just as
good.  but if we want to mirror the way we do mod_perl then we can have
dist/ as well, no problem.
it doesn't matter, less work for us w/o it.
also we may want to add a /Apache-Test/snapshot for svn-impaired users.

that's a good idea.  I'll see if I can find the snapshot scripts or talk to
whoever I need to to get that setup.
geoff++
--
__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


[STATUS] (httpd-test: flood) Thu Feb 10 06:05:01 2005

2005-02-10 Thread Rodent of Unusual Size
flood STATUS:   -*-text-*-
Last modified at [$Date: 2004-11-24 19:36:41 -0500 (Wed, 24 Nov 2004) $]

Release:

1.0:   Released July 23, 2002
milestone-03:  Tagged January 16, 2002
ASF-transfer:  Released July 17, 2001
milestone-02:  Tagged August 13, 2001
milestone-01:  Tagged July 11, 2001 (tag lost during transfer)

RELEASE SHOWSTOPPERS:

* Everything needs to work perfectly

Other bugs that need fixing:

* I get a SIGBUS on Darwin with our examples/round-robin-ssl.xml
  config, on the second URL. I'm using OpenSSL 0.9.6c 21 dec 2001.
  
* iPlanet sends Content-length - there is a hack in there now
  to recognize it.  However, all HTTP headers need to be normalized
  before checking their values.  This isn't easy to do.  Grr.

* OpenSSL 0.9.6
  Segfaults under high load.  Upgrade to OpenSSL 0.9.6b.
   Aaron says: I just found a big bug that might have been causing
   this all along (we weren't closing ssl sockets).
   How can I reproduce the problem you were seeing
   to verify if this was the fix?

* SEGVs when /tmp/.rnd doesn't exist are bad. Make it configurable
  and at least bomb with a good error message. (See Doug's patch.)
   Status: This is fixed, no?

* If APR has disabled threads, flood should as well. We might want
  to have an enable/disable parameter that does this also, providing
  an error if threads are desired but not available.

* flood needs to clear pools more often. With a long running test
  it can chew up memory very quickly. We should just bite the bullet
  and create/destroy/clear pools for each level of our model:
  farm, farmer, profile, url/request-cycle, etc.

* APR needs to have a unified interface for ephemeral port
  exhaustion, but aparently Solaris and Linux return different
  errors at the moment. Fix this in APR then take advantage of
  it in flood.

* The examples/analyze-relative scripts fail when there are less
  than 5 unique URLs.

Other features that need writing:

* More analysis and graphing scripts are needed

* Write robust tool (using tethereal perhaps) to take network dumps 
  and convert them to flood's XML format.
Status: Justin volunteers.  Aaron had a script somewhere that is
a start. Jacek is working on a Mozilla application, codename
Flood URL bag (much like Live HTTP Headers) and small
HTTP proxy.

* Get chunked encoding support working.
Status: Justin volunteers.  He got sidetracked by the httpd
implementation of input filtering and never finished 
this.  This is a stopgap until apr-serf is completed.

* Maybe we should make randfile and capath runtime directives that
  come out of the XML, instead of autoconf parameters.

* We are using apr_os_thread_current() and getpid() in some places
  when what we really want is a GUID. The GUID will be used to
  correlate raw output data with each farmer. We may wish to print
  a unique ID for each of farm, farmer, profile, and url to help in
  postprocessing.

* We are using strtol() in some places and strtoll() in others.
  Pick one (Aaron says strtol(), but he's not sure).

* Validation of responses (known C-L, specific strings in response)
   Status: Justin volunteers

* HTTP error codes (ie. teach it about 302s)
   Justin says: Yeah, this won't be with round_robin as implemented.  
Need a linked list-based profile where we can insert 
new URLs into the sequence.

* Farmer (Single-thread, multiple profiles)
   Status: Aaron says: If you have threads, then any Farmer can be
   run as part of any Farm. If you don't have threads, you can
   currently only run one Farmer named Joe right now (this will
   be changed so that if you don't have threads, flood will attempt
   to run all Farmers in serial under one process).

* Collective (Single-host, multiple farms)
  This is a number of Farms that have been fork()ed into child processes.

* Megaconglomerate (Multiple hosts each running a collective)
  This is a number of Collectives running on a number of hosts, invoked
  via RSH/SSH or maybe even some proprietary mechanism.

* Other types of urllists
a) Random / Random-weighted
b) Sequenced (useful with cookie propogation)
c) Round-robin
d) Chaining of the above strategies
  Status: Round-robin is complete.

* Other types of reports
  Status: Aaron says: simple reports are functional. Justin added
  a new type that simply prints the approx. timestamp when
  the test was run, and the result as OK/FAIL; it is called
  easy reports (see flood_easy_reports.h).

[STATUS] (httpd-test: perl-framework) Thu Feb 10 06:05:10 2005

2005-02-10 Thread Rodent of Unusual Size
httpd-test/perl-framework STATUS:   -*-text-*-
Last modified at [$Date: 2004-11-24 19:36:41 -0500 (Wed, 24 Nov 2004) $]

Stuff to do:
* finish the t/TEST exit code issue (ORed with 0x2C if
  framework failed)

* change existing tests that frob the DocumentRoot (e.g.,
  t/modules/access.t) to *not* do that; instead, have
  Makefile.PL prepare appropriate subdirectory configs
  for them.  Why?  So t/TEST can be used to test a
  remote server.

* problems with -d perl mode, doesn't work as documented
  Message-ID: [EMAIL PROTECTED]
  Date: Sat, 20 Oct 2001 12:58:33 +0800
  Subject: Re: perldb

Tests to be written:

* t/apache
  - simulations of network failures (incomplete POST bodies,
chunked and unchunked; missing POST bodies; slooow
client connexions, such as taking 1 minute to send
1KiB; ...)

* t/modules/autoindex
  - something seems possibly broken with inheritance on 2.0

* t/ssl
  - SSLPassPhraseDialog exec:
  - SSLRandomSeed exec:


RE: loading mod_perl first?

2005-02-10 Thread Gerald Richter
Hi,

 
  Index: TestRunPerl.pm
  ===
  --- TestRunPerl.pm  (revision 153110)
  +++ TestRunPerl.pm  (working copy)
  @@ -35,6 +35,9 @@
   
   # Apache::TestConfigPerl already configures mod_perl.so
   Apache::TestConfig::autoconfig_skip_module_add('mod_perl.c');
  +
  +# skip over Embperl.so - it's funky
  +Apache::TestConfig::autoconfig_skip_module_add('Embperl.c');
   }
   

This solution looks good to me, but should be mod_embperl.c instead of
Embperl.c.

The reason why Embperl.so needs to loaded in the Apache config, is that it
adds Apache configuration directives to Apache, so you can write

Embperl_XXX foo

Instead of 

PerlSetEnv EMBPERL_XXX foo

In Apache 1.3 this works without explicitly loading Embperl.so, just via
PerlModule, but for Apache 2 Embperl.so needs to be loaded via LoadModule,
otherwise it's to late for adding config directives. So the problem will
occur with all modules that adds configuration directives to Apache and you
are right that is not common. The only one I know is AxKit, which currently
runs only on mod_perl 1.

Gerald

P.S. I am currently on the German Perl Workshop, so I cannot test. I will
test this change when I am back.






Re: loading mod_perl first?

2005-02-10 Thread Geoffrey Young

 
 This solution looks good to me, but should be mod_embperl.c instead of
 Embperl.c.

well, I went to the embperl site and added this to my httpd.conf

  LoadModule  embperl_module  /tmp/Embperl.so

and things worked out as expected

  [  debug] /tmp/Embperl.so is already absolute
  [  debug] /tmp/Embperl.so successfully resolved to existing file
/tmp/Embperl.so
  [  debug] Found: embperl_module = Embperl.c
  [  debug] Skipping LoadModule of Embperl.c

is this not a correct setup?  or it is for apache2 and not apache 1.3?

--Geoff


RE: loading mod_perl first?

2005-02-10 Thread Gerald Richter
Hi
 
  
  This solution looks good to me, but should be mod_embperl.c 
 instead of 
  Embperl.c.
 
 well, I went to the embperl site and added this to my httpd.conf
 
   LoadModule  embperl_module  /tmp/Embperl.so
 
 and things worked out as expected
 
   [  debug] /tmp/Embperl.so is already absolute
   [  debug] /tmp/Embperl.so successfully resolved to existing 
 file /tmp/Embperl.so
   [  debug] Found: embperl_module = Embperl.c
   [  debug] Skipping LoadModule of Embperl.c
 
 is this not a correct setup?  or it is for apache2 and not apache 1.3?
 

Looks like you done the right thing. As said I am not at home and cannot
test at the moment, so I told you mod_embperl.c from my mind, but it looks
like I am wrong. I will check this next week when I am back and give you a
feedback.

Gerald



Re: [Fwd: MODERATE for modperl-cvs@perl.apache.org]

2005-02-10 Thread Geoffrey Young


Stas Bekman wrote:
 Folks committing to A-T, please don't forget to subscribe to the new lists:
 
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]

I think I mentioned that before, but it never hurts :)

 
 I've approved joe as a poster.
 
 Geoff, why the moderation hits the modperl-cvs /at/ perl.apache.org list?

I dunno.  ask set these up.

 
 Also it looks that commits to A-T go to two lists:
 To: [EMAIL PROTECTED], modperl-cvs@perl.apache.org
 any special reason?

I didn't do it.  I'll ping justin.

--Geoff