Re: library-ization

2002-10-05 Thread Jacek Prucia
wiadomosc od David N. Welton, z dnia Wed, Oct 02, 2002 at 05:48:10PM -0700

[...]
 Is it a goal of the flood project to make a library out of it?  In
 other words, expose an API that other programs could pass data into
 and out of, and link to?  Or will XML be the only way to do this?

It will probably be XML only. If you want other software on top of flood,
you'll have to wrap it around flood binary (with pipes or so).

 I started doing this with 'ab', and was directed to flood as a more
 modern effort with more work going into it.  It looks pretty good so
 far!

Yeah, but we still have a lot of work to do. Voulnteers and patches welcome :)

 Just out of curiosity, will flood be supplanting 'ab' at some point?

This is probably best for Aaron or Justin to answer, but IMHO no. ApacheBench
is a very simple tool. You can hit just one url, no config file, etc. It's
just fine when it comes to simple testing. Flood can hit many url's, has
structured config file, and besides typical stress tests, it can be used also
for 'web application regression tests' and 'web capacity planning'. Well...
sort of... most of the features aren't implemented yet, but we're moving
forward ;))

regards,
-- 
Jacek Prucia
7bulls.com S.A.



Re: Build on AIX fails

2002-10-05 Thread Jeff Trawick

Jess M. Holle [EMAIL PROTECTED] writes:

 Do the LDAP authentication modules build on AIX yet?
 
 At 2.0.40 I could not get the httpd-ldap sub-project to build on AIX -- 
 despite getting it to build just fine on Solaris and Windows
 
 Correction -- the module built on AIX, but would not load on startup.

IIRC, you were using a Netscape LDAP library which I couldn't get hold
of easily.  Have you tried OpenLDAP?

-- 
Jeff Trawick | [EMAIL PROTECTED]
Born in Roswell... married an alien...



[PATCH] mod_negotiation.c

2002-10-05 Thread André Malo

Hi,

[sent a similiar patch several weeks ago, but wasn't noticed, so I try
it again.. :)]

The attached patch sets the MIME-type, charset, content-language and
content-encoding of a negotiated type-map body. Thus you can hold
different types, languages etc. inside the same file, for example:

--8---[ type.map ]---
Content-language: de
Content-type: text/html; charset=ISO-8859-1
Body:--dehtml--
[german text/html document]
--dehtml--

Content-language: de
Content-type: application/xhtml+xml; charset=UTF-8
Body:--dexml--
[german application/xhtml+xml document; utf-8 encoded]
--dexml--

Content-language: en
Content-type: text/plain; charset=us-ascii
Body:--en--
[english text/plain document]
--en--
--8---[ type.map ]---

The information will only be set if available, of course.

Technical Note: I'm not sure, whether copying the information there is
the right way (instead of assigning pointers), but I guess, you tell me,
if it's wrong ;-)

Since the distributed customized error documents are going to rely on
this header information, any feedback would be appreciated.

nd
-- 
$_=q?tvc!uif)%*|#Bopuifs!A`#~tvc!Xibu)%*|qsjou#Kvtu!A`#~tvc!KBQI!)*|~
tvc!ifmm)%*|#Qfsm!A`#~tvc!jt)%*|(Ibdlfs(~  # What the hell is JAPH? ;
_=split/\s\s+#/;$_=(join''=map{chr(ord(  # André Malo ;
$_)-1)}split//=$_[0]).$_[1];s s.*s$_see;  #  http://www.perlig.de/ ;


Index: mod_negotiation.c
===
RCS file: /home/cvspublic/httpd-2.0/modules/mappers/mod_negotiation.c,v
retrieving revision 1.107
diff -u -r1.107 mod_negotiation.c
--- mod_negotiation.c   9 Aug 2002 19:21:57 -   1.107
+++ mod_negotiation.c   5 Oct 2002 16:34:40 -
 -2841,6 +2841,33 
  */
 apr_table_setn(r-headers_out, Accept-Ranges, bytes);
 ap_set_content_length(r, best-bytes); 
+
+/* set MIME type and charset as negotiated */
+if (best-mime_type  *best-mime_type) {
+if (best-content_charset  *best-content_charset) {
+ap_set_content_type(r, apr_pstrcat(r-pool,
+   best-mime_type,
+   ; charset=,
+   best-content_charset,
+   NULL));
+}
+else {
+ap_set_content_type(r, apr_pstrdup(r-pool, best-mime_type));
+}
+}
+
+/* set Content-language(s) as negotiated */
+if (best-content_languages  best-content_languages-nelts) {
+r-content_languages = apr_array_copy(r-pool,
+  best-content_languages);
+}
+
+/* set Content-Encoding as negotiated */
+if (best-content_encoding  *best-content_encoding) {
+r-content_encoding = apr_pstrdup(r-pool,
+  best-content_encoding);
+}
+
 if ((res = ap_meets_conditions(r)) != OK) {
 return res;
 }


Re: DO NOT REPLY [Bug 9181] - Unable to set headers on non-2XX responses.

2002-10-05 Thread Sander van Zoest

On Fri, Oct 04, 2002 at 01:35:06PM -0400, [EMAIL PROTECTED] wrote:
 Please do not close bug reports without entering some kind of information
 about why it is being closed.

It is CLOSED, because I agree with the fact that it is RESOLVED.

-- 
Sander van Zoest  [EMAIL PROTECTED]
San Diego, CA, US http://Sander.vanZoest.com/



[Patch] Add -S as a synonym for -t -DDUMP_VHOSTS

2002-10-05 Thread Thom May

This allows people who are used to the 1.3 argument to continue working in
the style they are used to...
Cheers,
-Thom
-- 
Thom May - [EMAIL PROTECTED]

moshez wiggy: I just hurt other people. because I am evil!!
 muhahahahahahahaha! evil, I tell you, evil


Index: include/http_main.h
===
RCS file: /home/cvspublic/httpd-2.0/include/http_main.h,v
retrieving revision 1.24
diff -u -u -r1.24 http_main.h
--- include/http_main.h 23 May 2002 12:58:36 -  1.24
+++ include/http_main.h 5 Oct 2002 22:17:35 -
@@ -65,7 +65,7 @@
  * in apr_getopt() format.  Use this for default'ing args that the MPM
  * can safely ignore and pass on from its rewrite_args() handler.
  */
-#define AP_SERVER_BASEARGS C:c:D:d:E:e:f:vVlLth?X
+#define AP_SERVER_BASEARGS C:c:D:d:E:e:f:vVlLtSh?X
 
 #ifdef __cplusplus
 extern C {
Index: server/main.c
===
RCS file: /home/cvspublic/httpd-2.0/server/main.c,v
retrieving revision 1.138
diff -u -u -r1.138 main.c
--- server/main.c   15 Sep 2002 21:34:08 -  1.138
+++ server/main.c   5 Oct 2002 22:17:41 -
@@ -317,7 +317,7 @@
  pad);
 #endif
 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
-%s [-v] [-V] [-h] [-l] [-L] [-t], pad);
+%s [-v] [-V] [-h] [-l] [-L] [-t] [-S], pad);
 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
  Options:);
 
@@ -385,6 +385,8 @@
-t -D DUMP_VHOSTS : show parsed settings (currently only 
  vhost settings));
 ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
+   -S: a synonym for -t -D DUMP_VHOSTS);   
+ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
-t: run syntax check for config files);
 
 destroy_and_exit_process(process, 1);
@@ -527,7 +529,13 @@
 case 't':
 configtestonly = 1;
 break;
-
+
+case 'S':
+configtestonly = 1;
+new = (char **)apr_array_push(ap_server_config_defines);
+*new = DUMP_VHOSTS;
+break;
+
 case 'h':
 case '?':
 usage(process);



Re: [Patch] Add -S as a synonym for -t -DDUMP_VHOSTS

2002-10-05 Thread Rich Bowen

On Sat, 5 Oct 2002, Thom May wrote:

 This allows people who are used to the 1.3 argument to continue working in
 the style they are used to...

Yay.

+1

It makes me happy when things work like people expect them to. Makes
teaching easier.

-- 
Nothing is perfekt. Certainly not me.
Success to failure. Just a matter of degrees.