httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacek Prucia <jacek.pru...@7bulls.com>
Subject [PATCH] flood: assertion failure
Date Wed, 04 Sep 2002 16:36:44 GMT

This fixed issue brought up recently. Here's a snippet from STATUS:

    * We get an assertion failure when there is a regexp defined that
      doesn't match in the response. Instead of relying on assertions,
      we need to detect this case, print a fatal error message, and
quit.

...and here's how this looks in realtime:

bash-2.05 $ ./flood examples/round-robin-dynamic.xml
Regular expression match failed (<a href="([^"]*)">)
postprocessing failed (http://www.apachelabs.org/cgi-bin/htsearch).
Error running farmer 'Joe': Error string not specified yet.
bash-2.05 $

BTW. We use APR_EGENERAL a lot. It gets translated to this 'Error string
not specified yet', which sometimes leaves me clueless. Looks like we
need to have a bunch of defines with our own error codes.

Another thing on my personal TODO list is that we need to have some sort
of ID per url. It might just be a counter, or dedicated id like this:
<url id="placeorder" ... > so that if urllist is a bit bloated and
something bails out (regexp for example) you can quickly find bad url in
your config.

RBC as usual.

regards,
-- 
Jacek Prucia
7bulls.com S.A.
http://www.7bulls.com/



Mime
View raw message