Re: httpd.conf --> Pidfile

2004-02-29 Thread Justin Erenkrantz
--On Sunday, February 29, 2004 10:11 AM -0300 Esteban Pizzini 
<[EMAIL PROTECTED]> wrote:

 How can I get the value of httpd.conf --> Pidfile directive from a
module???
 I've been looking in mod_info, but it implements a cycle reading all
directives (and there gets PidFile value to show).. is there any function
that gets the value of PidFile directive in a easier way??
If you include mpm_common.h, you might be able to use ap_pid_fname.  -- justin


Re: FreeBSD 4.x and Apache2: worker MPM issue

2004-02-29 Thread Justin Erenkrantz
--On Sunday, February 29, 2004 4:06 PM -0400 "Marc G. Fournier" 
<[EMAIL PROTECTED]> wrote:

k, if I'm understanding what you are saying, how do you test something
like that in a way that you can debug it?  What I'm reading is that if I
sent two queries (GET / and, say, GET /subdir), there is a chance that the
one that sent GET / will get the results for GET /subdir?
No, that's not quite the problem.  It is:

1. Client requests GET /
2. *nothing happens*
3. Client (same or different) requests GET /subdir/
4. Server responds to GET / request issued in #1 (to the correct client)
5. *nothing happens*
6. Someone requests GET /subdir/foo/ issued in #3
7. Server responds to GET /subdir/ request
8. *nothing happens*
...repeat cycle...
Does this make more sense?  The server won't respond to the first request 
until the second request is issued and so on.  We think it's a flaw in how 
libc_r implements the pthread condition variables.  But, again, it's been 
fixed with the thread library rewrites in 5.2.  -- justin


Re: FreeBSD 4.x and Apache2: worker MPM issue

2004-02-29 Thread Marc G. Fournier
yOn Sun, 29 Feb 2004, Justin Erenkrantz wrote:

> --On Sunday, February 29, 2004 12:29 PM -0400 "Marc G. Fournier"
> <[EMAIL PROTECTED]> wrote:
>
> > 'k, how do you manage 'simultaneously?  I tried using http_load with -rate
> > set to 10, and couldn't lock it up, and its supposed to start up 10
> > connections per sec, if I read the docs right ...
>
> You probably want to use telnet instead (i.e. two telnet sessions at
> once).  It'll service requests, but it's dependent on having the second
> request come in to service the first one.  That was unacceptable to us,
> and why we disabled threading by default.  -- justin

k, if I'm understanding what you are saying, how do you test something
like that in a way that you can debug it?  What I'm reading is that if I
sent two queries (GET / and, say, GET /subdir), there is a chance that the
one that sent GET / will get the results for GET /subdir?


Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email: [EMAIL PROTECTED]   Yahoo!: yscrappy  ICQ: 7615664


Bug? in 1.3 htdigest?

2004-02-29 Thread Thom May
Hey guys,
just wondering why we use system(copy...)/system(cp...) in htdigest in 1.3, 
when the netware option seems to be more secure?
The patch attached just rips out the ifdef and uses the netware code
globally.
-Thom
Index: htdigest.c
===
RCS file: /home/cvs/apache-1.3/src/support/htdigest.c,v
retrieving revision 1.39
diff -u -r1.39 htdigest.c
--- htdigest.c  20 Feb 2004 22:02:24 -  1.39
+++ htdigest.c  29 Feb 2004 18:50:18 -
@@ -152,7 +152,6 @@
 }
 
 
-#ifdef NETWARE
 static void copy_file(FILE *target, FILE *source)
 {
 static char line[MAX_STRING_LEN];
@@ -161,7 +160,6 @@
putline(target, line);
 }
 }
-#endif
 
 int main(int argc, char *argv[])
 {
@@ -239,14 +237,7 @@
 }   
 fclose(f);
 fclose(tfp);
-#ifndef NETWARE
-#if defined(OS2) || defined(WIN32)
-sprintf(command, "copy \"%s\" \"%s\"", tn, argv[1]);
-#else
-sprintf(command, "cp %s %s", tn, argv[1]);
-#endif
-system(command);
-#else
+
 if (!(tfp = fopen(tn, "r"))) {
 fprintf(stderr, "Could not open temp file.\n");
 exit(1);
@@ -258,7 +249,6 @@
 }
 
 copy_file(f, tfp);
-#endif
 unlink(tn);
 return 0;
 }


Re: FreeBSD 4.x and Apache2: worker MPM issue

2004-02-29 Thread Justin Erenkrantz
--On Sunday, February 29, 2004 12:29 PM -0400 "Marc G. Fournier" 
<[EMAIL PROTECTED]> wrote:

'k, how do you manage 'simultaneously?  I tried using http_load with -rate
set to 10, and couldn't lock it up, and its supposed to start up 10
connections per sec, if I read the docs right ...
You probably want to use telnet instead (i.e. two telnet sessions at once). 
It'll service requests, but it's dependent on having the second request come 
in to service the first one.  That was unacceptable to us, and why we disabled 
threading by default.  -- justin


Re: FreeBSD 4.x and Apache2: worker MPM issue

2004-02-29 Thread Marc G. Fournier
On Sat, 28 Feb 2004, Justin Erenkrantz wrote:

> --On Saturday, February 28, 2004 10:05 PM -0400 "Marc G. Fournier"
> <[EMAIL PROTECTED]> wrote:
>
> > Someone mentioned to me once that there is an easy/consistent way to
> > trigger the thread bug where you have 2+ workers in operation ...
> >
> > Can someone send me a how to on this?
>
> Just issue two GET requests simultaneously.  On FreeBSD 4.x, responses are
> only processed serially and in a one-off manner.  That is, the first response
> will not be sent until the second request is sent.

'k, how do you manage 'simultaneously?  I tried using http_load with -rate
set to 10, and couldn't lock it up, and its supposed to start up 10
connections per sec, if I read the docs right ...


Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email: [EMAIL PROTECTED]   Yahoo!: yscrappy  ICQ: 7615664


Bug report for Apache httpd-2.0 [2004/02/29]

2004-02-29 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
| 7483|Ass|Enh|2002-03-26|Add FileAction directive to assign a cgi interpret|
| 7862|New|Enh|2002-04-09|suexec never log a group name.|
| 8167|New|Min|2002-04-16|--with-module does not build MODULE_DIRS correctly|
| 8483|Opn|Min|2002-04-24|apache_2.0 .msi installer breaks .log and .conf fi|
| 8500|Ass|Cri|2002-04-25|authorization user does not logged|
| 8713|New|Min|2002-05-01|No Errorlog on PROPFIND/Depth:Infinity|
| 8867|Opn|Cri|2002-05-07|exports.c generation fails when using a symlink to|
| 8880|New|Enh|2002-05-07|AcceptPathInfo does not apply to DirectoryIndex fi|
| 8925|New|Cri|2002-05-09|Service Install (win32 .msi/.exe) fails for port i|
| 8993|Opn|Nor|2002-05-10|openssl library location(s) are hardcoded in confi|
| 9046|New|Min|2002-05-13|Cleaned up PNG/MNG converted icons|
| 9484|New|Enh|2002-05-29|Dynamic ServerAdmin configuration |
| 9513|Opn|Nor|2002-05-30|Missing start menu items  |
| 9656|New|Nor|2002-06-06|Support of FTP Proxy only partially documented|
| 9727|New|Min|2002-06-09|Double quotes should be flagged as T_HTTP_TOKEN_ST|
| 9945|New|Enh|2002-06-18|[PATCH] new funtionality for apache bench |
| 9953|Opn|Maj|2002-06-18|Normal incoming headers disappear when +ExportCert|
|10114|Ass|Enh|2002-06-21|Negotiation gives no weight to order, only q value|
|10154|Ass|Nor|2002-06-23|ApacheMonitor interferes with service uninstall/re|
|10434|Ass|Enh|2002-07-03|mod_rewrite doesn't fill the variables as HTTPS   |
|10575|New|Enh|2002-07-09|no option to autoindex auth protected files/folder|
|10598|Opn|Nor|2002-07-09|Apache will break down files bigger than 64KB |
|10722|New|Nor|2002-07-12|ProxyPassReverse doesn't change cookie paths  |
|10775|Ass|Cri|2002-07-13|SCRIPT_NAME wrong value   |
|11000|New|Enh|2002-07-20|Mutex permission problems: configuration template |
|11035|New|Min|2002-07-22|Apache adds double entries to headers generated by|
|11259|New|Enh|2002-07-29|'make install' should provide a deinstaller   |
|11294|New|Enh|2002-07-30|desired vhost_alias option|
|11331|New|Cri|2002-07-31|stale cgi process entries when using suexec   |
|11427|Opn|Maj|2002-08-02|Possible Memory Leak in CGI script invocation |
|11514|New|Maj|2002-08-07|worker MPM stalls on UnixWare 7.11|
|11521|New|Nor|2002-08-07|Addition of  Japanese error message   |
|11540|New|Nor|2002-08-07|ProxyTimeout ignored  |
|11580|Opn|Enh|2002-08-09|generate Content-Location headers |
|11660|New|Enh|2002-08-13|a New Hebrew Translation for "Test Page for Apache|
|11769|New|Nor|2002-08-16|2.0.39 Bindist does not work on all versions of So|
|11960|New|Maj|2002-08-23|Apache default config doesn't include uk langauge |
|12033|Opn|Nor|2002-08-26|Graceful restart immidiately result in [warn] long|
|12187|Opn|Blk|2002-08-30|Standard config with perchild; Apache is blocked  |
|12340|Opn|Nor|2002-09-05|WindowsXP proxy, child process exited with status |
|12355|Opn|Nor|2002-09-06|SSLVerifyClient directive in location make post to|
|12426|Ass|Nor|2002-09-09|mod_proxy broken under high load ?|
|12625|New|Enh|2002-09-13|[PATCH] Restoration of mod_ssl compatibility env v|
|12631|New|Blk|2002-09-13|integrating 3rd-party module into Apache build|
|12680|New|Enh|2002-09-16|Digest authentication with integrity protection   |
|12885|New|Enh|2002-09-20|windows 2000 build information: mod_ssl, bison, et|
|12894|New|Nor|2002-09-21|not assuming the DEFAULTTYPE for PHP files without|
|12981|New|Nor|2002-09-25|Apache Bench can't take binary post data  |
|13029|New|Nor|2002-09-26|failure to generate StdEnvVars depending on charse|
|13101|New|Cri|2002-09-27|Using mod_ext_filter with mod_proxy and http/1.1 c|
|13272|Opn|Nor|2002-10-04|Documentation doesn't mention that SSL is not in b|
|13328|

Bug report for Apache httpd-1.3 [2004/02/29]

2004-02-29 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
| 7741|New|Nor|2002-04-04|some directives may be placed outside of proper co|
| 7982|New|Maj|2002-04-11|mod_rewrite URL string empty when passed unicoded |
| 8311|Opn|Nor|2002-04-19|error in PUT directive gives confusing error messa|
| 8329|New|Nor|2002-04-20|mime_magic gives 500 and no error_log on Microsoft|
| 8372|Ass|Nor|2002-04-22|Threadsaftey issue in Rewrite's cache [Win32/OS2/N|
| 8849|New|Nor|2002-05-07|make install errors as root on NFS shares |
| 8882|New|Enh|2002-05-07|[PATCH] mod_rewrite communicates with external rew|
| 9037|New|Min|2002-05-13|Slow performance when acessing an unresolved IP ad|
| 9126|New|Blk|2002-05-15|68k-next-openstep v. 4.0  |
| 9726|New|Min|2002-06-09|Double quotes should be flagged as T_HTTP_TOKEN_ST|
| 9894|New|Maj|2002-06-16|getline sub in support progs collides with existin|
| |New|Nor|2002-06-19|Incorrect default manualdir value with layout.|
|10038|New|Min|2002-06-20|ab benchmaker hangs on 10K https URLs with keepali|
|10073|New|Maj|2002-06-20|upgrade from 1.3.24 to 1.3.26 breaks include direc|
|10169|New|Nor|2002-06-24|Apache seg faults due to attempt to access out of |
|10178|New|Maj|2002-06-24|Proxy server cuts off begining of buffer when spec|
|10195|New|Nor|2002-06-24|Configure script erroneously detects system Expat |
|10199|New|Nor|2002-06-24|Configure can't handle directory names with unders|
|10243|New|Maj|2002-06-26|CGI scripts not getting POST data |
|10354|New|Nor|2002-06-30|ErrorDocument(.htaccess) fails when passed URL wit|
|10470|New|Cri|2002-07-04|proxy module will not correctly serve mixed case f|
|10666|New|Enh|2002-07-10|line-end comment error message missing file name  |
|10744|New|Nor|2002-07-12|suexec might fail to open log file|
|10747|New|Maj|2002-07-12|ftp SIZE command and 'smart' ftp servers results i|
|10760|New|Maj|2002-07-12|empty ftp directory listings from cached ftp direc|
|10890|New|Cri|2002-07-17|if "et" locale is used, configure fails   |
|10939|New|Maj|2002-07-18|directory listing errors  |
|11020|New|Maj|2002-07-21|APXS only recognise tests made by ./configure |
|11236|New|Min|2002-07-27|Possible Log exhaustion bug?  |
|11265|New|Blk|2002-07-29|mod_rewrite fails to encode special characters|
|11765|New|Nor|2002-08-16|.apaci.install.tmp installs in existing httpd.conf|
|11986|New|Nor|2002-08-23|Restart hangs when piping logs on rotation log pro|
|11993|Opn|Cri|2002-08-23|PDFs served through ProxyPass show up blank   |
|12096|New|Nor|2002-08-27|apxs does not handle binary dists installed at non|
|12391|New|Maj|2002-09-07|DBM_LIB should be blank for OS X 10.2 |
|12551|New|Nor|2002-09-11|mod_proxy fails to shutdown when client cancels   |
|12574|New|Nor|2002-09-12|Broken images comes from mod_proxy when caching ww|
|12583|New|Nor|2002-09-12|First piped log process do not handle SIGTERM |
|12598|New|Maj|2002-09-12|Apache hanging in Keepalive State |
|13120|New|Cri|2002-09-29|CGI procs defunctioning   |
|13188|New|Nor|2002-10-02|does not configure correctly for hppa64-hp-hpux11.|
|13274|Ass|Nor|2002-10-04|Subsequent requests are destroyed by the request e|
|13577|New|Nor|2002-10-13|mod_proxy mangles query string|
|13607|Opn|Enh|2002-10-14|Catch-all enhancement for vhost_alias?|
|13687|New|Min|2002-10-16|Leave Debug symbol on Darwin  |
|13822|New|Maj|2002-10-21|Problem while running Perl modules accessing CGI::|
|14031|New|Nor|2002-10-29|POST handling for multi part forms incorrect  |
|14095|Opn|Nor|2002-10-30|Change default Content-Type (DefaultType) in defau|
|14250|New|Maj|2002-11-05|Alternate UserDirs don't work intermittantly  |
|14358|New|Enh|2002-11-07|rotatelogs using TZ settings  |
|14443|New|Maj|2002-11-11|Keep-Alive randomly causes TCP RSTs   |
|14448|

httpd.conf --> Pidfile

2004-02-29 Thread Esteban Pizzini
 Hi,

 How can I get the value of httpd.conf --> Pidfile directive from a
module???
 I've been looking in mod_info, but it implements a cycle reading all
directives (and there gets PidFile value to show).. is there any function
that gets the value of PidFile directive in a easier way??

 Thank you,
EP





Re: FreeBSD 4.x and Apache2: worker MPM issue

2004-02-29 Thread Paul Querna
On Sat, 2004-02-28 at 23:59, Justin Erenkrantz wrote:
> Note that this is fixed on FreeBSD 5.2+ with either libkse or libthr.  libc_r, 
> the default in 5.2, still doesn't work - you have to use libmap.conf, etc.

btw, libkse is now the default for -CURRENT,  which means for the 5.3
Release end Users will not have to use libmap.conf. Hurrah, libc_r is
finally going away!

- Paul Querna