Re: is httpd a valid way to start Apache?

2002-05-22 Thread Manoj Kasichainula
On Thu, May 16, 2002 at 10:16:56PM -0701, Jos Backus wrote: On Thu, May 16, 2002 at 07:27:46PM -0700, Manoj Kasichainula wrote: I've (mostly) written replacements for supervise, setuidgid, and tcpserver. They use Single Unix APIs, haven't been ported to APR, and have no docs yet, but they

Development documentation

2002-05-22 Thread Miguel Camargo
Hello: I am new in the list and i don´t know if this is the correct place for my problem. I am doing a proyect with Apache and i need to know how works Apache internally. I need to look into its source code and try to understand how it goes more or less. My problem is that i have downloaded

Re: [PATCH 2] worker MPM deadlock

2002-05-22 Thread Bill Stoddard
Is there a unix equivalent to the Win32 Sleep(0) call? If so, then we can rip out all this cruft and use the patch I posted earlier. Bill - Original Message - From: Brian Pane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 21, 2002 8:08 PM Subject: [PATCH 2] worker MPM

Re: [PATCH 2] worker MPM deadlock

2002-05-22 Thread Jeff Trawick
Bill Stoddard [EMAIL PROTECTED] writes: Is there a unix equivalent to the Win32 Sleep(0) call? If so, then we can rip out all this cruft and use the patch I posted earlier. google for pthread_yield() and compare the doc with the doc for Win32's Sleep(0). I suspect it is the same as long as

RE: [PATCH 2] worker MPM deadlock

2002-05-22 Thread Ryan Bloom
From: [EMAIL PROTECTED] [mailto:trawick@rdu88-251- Bill Stoddard [EMAIL PROTECTED] writes: Is there a unix equivalent to the Win32 Sleep(0) call? If so, then we can rip out all this cruft and use the patch I posted earlier. google for pthread_yield() and compare the doc with the doc

Re: [PATCH 2] worker MPM deadlock

2002-05-22 Thread Bill Stoddard
From: [EMAIL PROTECTED] [mailto:trawick@rdu88-251- Bill Stoddard [EMAIL PROTECTED] writes: Is there a unix equivalent to the Win32 Sleep(0) call? If so, then we can rip out all this cruft and use the patch I posted earlier. google for pthread_yield() and compare the doc with

RE: [PATCH 2] worker MPM deadlock

2002-05-22 Thread Ryan Bloom
Copying APR, because this is becoming an APR issue quickly. From: [EMAIL PROTECTED] [mailto:trawick@rdu88-251- Bill Stoddard [EMAIL PROTECTED] writes: Is there a unix equivalent to the Win32 Sleep(0) call? If so, then we can rip out all this cruft and use the patch I

Re: Development documentation

2002-05-22 Thread Daniel Lopez
http://httpd.apache.org/docs-2.0/developer/ Most people do not need to modify the server itself, but rather just write a module. In that case pick one of the simple ones that come in the distribution and see how things work. Have a look at Doug MacEachern's Writing Apache Modules with mod_perl

Re: [PATCH 2] worker MPM deadlock

2002-05-22 Thread Brian Pane
Bill Stoddard wrote: Is there a unix equivalent to the Win32 Sleep(0) call? If so, then we can rip out all this cruft and use the patch I posted earlier. Can you repost your patch (or post a link to an archived copy)? Thanks, --Brian

Is Apache Proxy Half-Duplex?

2002-05-22 Thread Zvi Har'El
Hello, Experimenting with an Apache Proxy, I noticed that in version 1.3 (the latest cvs snapshot) it behaves in a half-duplex fashion. That is, it doesn't read the backend server response until it have finished transmitting the client's request body. This is pretty annoying, mainly if the

Re: [PATCH] exec cmd working with suexec

2002-05-22 Thread Colm MacCárthaigh
On Tue, May 21, 2002 at 01:03:03AM +0100, Colm MacCárthaigh wrote: The following patch reverts to the previous and documented bevahiour (exhibited by 1.3). Currently !--exec cmd does not work with suexec enabled as the proc.c will try to run : shell -c suexec uid gid ... so on. snip patch

Re: [PATCH 2] worker MPM deadlock

2002-05-22 Thread Bill Stoddard
I don't know if this will actually work, haven't fully considered all failure possibilities. I think there are better implementations of the basic idea. Need to use atomic increment/decrement and replace the yield() call with pthread_yield() or whatever... Bill

Re: [PATCH 2] worker MPM deadlock

2002-05-22 Thread Brian Pane
Bill Stoddard wrote: I don't know if this will actually work, haven't fully considered all failure possibilities. I think there are better implementations of the basic idea. Need to use atomic increment/decrement and replace the yield() call with pthread_yield() or whatever... Bill

Re: [PATCH 2] worker MPM deadlock

2002-05-22 Thread Bill Stoddard
Bill Stoddard wrote: I don't know if this will actually work, haven't fully considered all failure possibilities. I think there are better implementations of the basic idea. Need to use atomic increment/decrement and replace the yield() call with pthread_yield() or whatever... Bill

Re: [PATCH 2] worker MPM deadlock

2002-05-22 Thread Aaron Bannert
On Wed, May 22, 2002 at 01:31:06PM -0400, Bill Stoddard wrote: Yep this is a problem. I believe the pthread spec states that the cond_wait can be spuriously triggered. I'm pretty sure it does, which is why we always check for the condition when we wake up and go right back to sleep if the

Re: [PATCH] Implement -k option for httpd

2002-05-22 Thread Jeff Trawick
Here is another pass at it, starting with some of Justin's code but trying to work out a more agreeable place for some of the function. This puts the -k parsing in a rewrite_args hook (one for the Unix MPMs is implemented in mpm_common.c) and puts the actual signalling code in an optional

RE: [PATCH 2] worker MPM deadlock

2002-05-22 Thread Ryan Bloom
From: Aaron Bannert [mailto:[EMAIL PROTECTED]] On Wed, May 22, 2002 at 01:31:06PM -0400, Bill Stoddard wrote: Yep this is a problem. I believe the pthread spec states that the cond_wait can be spuriously triggered. I'm pretty sure it does, which is why we always check for the

Re: [PATCH 2] worker MPM deadlock

2002-05-22 Thread Jeff Trawick
Ryan Bloom [EMAIL PROTECTED] writes: From: Aaron Bannert [mailto:[EMAIL PROTECTED]] On Wed, May 22, 2002 at 01:31:06PM -0400, Bill Stoddard wrote: Yep this is a problem. I believe the pthread spec states that the cond_wait can be spuriously triggered. I'm pretty sure it does,

Re: [PATCH 2] worker MPM deadlock

2002-05-22 Thread Aaron Bannert
On Wed, May 22, 2002 at 01:50:44PM -0400, Cliff Woolley wrote: Right. pthread_yield seems to be a non-portable extension, if I'm reading right. From /usr/include/pthread.h on Linux: #ifdef __USE_GNU /* Yield the processor to another thread or process. This function is similar to the

Re: cvs commit: apache-1.3 STATUS

2002-05-22 Thread Cliff Woolley
On 22 May 2002 [EMAIL PROTECTED] wrote: jim 02/05/22 07:15:28 Modified:.STATUS Log: Not a showstopper but something Martin has expressed an interest in seeing resolved in 1.3.25 Revision ChangesPath 1.999 +6 -4 apache-1.3/STATUS RELEASE

Re: [PATCH 2] worker MPM deadlock

2002-05-22 Thread Cliff Woolley
On Wed, 22 May 2002, Aaron Bannert wrote: The reason it's not implemented is because it's not guaranteed to do anything. Yielding is up to the discresion of the underlying system, and depending on many things it may behave differently. We can not get predictable scheduling with any variant

dist/httpd/

2002-05-22 Thread Joshua Slive
Anyone mind if I make the following changes: - Make subdirectories for flood and apreq and move releases there. - Rename httpd-2.0.36-win32.zip to httpd-2.0.36-source_only-win32.zip There seems to be a ton of people downloading the win32.zip, and I imagine the majority of them are just

Re: dist/httpd/

2002-05-22 Thread Cliff Woolley
On Wed, 22 May 2002, Joshua Slive wrote: - Make subdirectories for flood and apreq and move releases there. +1 - Rename httpd-2.0.36-win32.zip to httpd-2.0.36-source_only-win32.zip How about just -srconly- or -src- instead of -source_only- ? That's an awfully long filename. But +1 either

Authentication requirement

2002-05-22 Thread Andrew Mann
httpd2.0.35 server/protocol.c Is there any reason why ap_get_basic_auth_pw() rejects authentication itself if the client provides no Auth line? I can see a theoretical reason, but it seems to me that the practical reasons not to do this would outweigh that. If I specify a module or

RE: dist/httpd/

2002-05-22 Thread Sander Striker
From: Cliff Woolley [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 20:06 On Wed, 22 May 2002, Joshua Slive wrote: - Make subdirectories for flood and apreq and move releases there. +1 - Rename httpd-2.0.36-win32.zip to httpd-2.0.36-source_only-win32.zip How about just -srconly- or

Re: [PATCH 2] worker MPM deadlock

2002-05-22 Thread Cliff Woolley
On Wed, 22 May 2002, Aaron Bannert wrote: CPU since it hits none of the yieldable system calls. On systems that do true context switching between userspace threads, this doesn't need to be implemented. It in no way guarantees that the execution will be yielded, since that's up to the

Re: [PATCH 2] worker MPM deadlock

2002-05-22 Thread Aaron Bannert
On Wed, May 22, 2002 at 02:14:30PM -0400, Cliff Woolley wrote: If it isn't guaranteed to do something but is rather just a hint, that's fine, as long as it's documented. But we should still make an attempt to honor the hint if the underlying system will let us. [For example, I know my

Re: cvs commit: apache-1.3 STATUS

2002-05-22 Thread Jim Jagielski
Yes it was! This should have been committed awhile ago (I thought it had!) :/ At 1:56 PM -0400 5/22/02, Cliff Woolley wrote: On 22 May 2002 [EMAIL PROTECTED] wrote: jim 02/05/22 07:15:28 Modified:.STATUS Log: Not a showstopper but something Martin has expressed an

Re: libexpat

2002-05-22 Thread Greg Ames
Doug MacEachern wrote: httpd links in expat, perl extension links against a different version of expat. both have the same symbol names, and they are not binary compatible. perl extension resolves symbols to the httpd version. kaboom. its been an issue for years with 1.3, you'll find

Re: libexpat

2002-05-22 Thread Greg Ames
Doug MacEachern wrote: On Tue, 21 May 2002, Greg Stein wrote: Euh... we switched over to a shared library to specifically fix this problem. Are you saying that that didn't work? I'm not buying it... :-) sooo, i guess the answer to my question on how to disable expat is you can't ?

Re: [PATCH 2] worker MPM deadlock

2002-05-22 Thread Bill Stoddard
On Wed, May 22, 2002 at 01:59:02PM -0400, Cliff Woolley wrote: On Wed, 22 May 2002, Aaron Bannert wrote: The reason it's not implemented is because it's not guaranteed to do anything. Yielding is up to the discresion of the underlying system, and depending on many things it may

Re: dist/httpd/

2002-05-22 Thread William A. Rowe, Jr.
At 01:00 PM 5/22/2002, Joshua Slive wrote: Anyone mind if I make the following changes: - Make subdirectories for flood and apreq and move releases there. Sounds Cool. - Rename httpd-2.0.36-win32.zip to httpd-2.0.36-source_only-win32.zip Allow me to make some changes first. There seems to be

Re: libexpat

2002-05-22 Thread Doug MacEachern
On Wed, 22 May 2002, Greg Ames wrote: Which release of httpd? 1.3 has a Configure rule to turn off expat. right. i'm asking about 2.0 (my original message specified)

Re: dist/httpd/

2002-05-22 Thread Joshua Slive
On Wed, 22 May 2002, William A. Rowe, Jr. wrote: There seems to be a ton of people downloading the win32.zip, and I imagine the majority of them are just confusing themselves. I've seen far fewer complaints since .36 when I rewrote the first few sentences about what the downloads are.

Re: cvs commit: httpd-dist HEADER.html

2002-05-22 Thread Joshua Slive
On 22 May 2002 [EMAIL PROTECTED] wrote: wrowe 02/05/22 13:13:08 Modified:.HEADER.html Log: Attempt to cool off download hell. Simplify the HEADER to just what we MUST state up front, so folks will take the time to read it. Not to discourage you, but I

win32 changes from 1.3

2002-05-22 Thread Allan Edwards
In 1.3 we did not need to specify a drive letter for ServerRoot and DocumentRoot paths but in 2.0 it appears we must specify the drive letter or Apache will not start as a service. (note: the 2.0.36 .msi install sets the drive letter so this limitation is not immediately apparent to those

Re: cvs commit: httpd-dist HEADER.html

2002-05-22 Thread William A. Rowe, Jr.
At 03:28 PM 5/22/2002, Joshua wrote: On 22 May 2002 [EMAIL PROTECTED] wrote: wrowe 02/05/22 13:13:08 Modified:.HEADER.html Log: Attempt to cool off download hell. Simplify the HEADER to just what we MUST state up front, so folks will take the time to

Re: dist/httpd/

2002-05-22 Thread Greg Stein
On Wed, May 22, 2002 at 02:22:03PM -0500, William A. Rowe, Jr. wrote: ... - Rename httpd-2.0.36-win32.zip to httpd-2.0.36-source_only-win32.zip Allow me to make some changes first. Um. How is httpd-2.0.36-win32.zip different from the .tar.gz ? In other words, if we're talking about source

Re: dist/httpd/

2002-05-22 Thread Cliff Woolley
On Wed, 22 May 2002, Greg Stein wrote: Um. How is httpd-2.0.36-win32.zip different from the .tar.gz ? In other words, if we're talking about source distributions, then why isn't it simply httpd-2.0.36.zip ? DOS-friendly CRLF line endings in the source files.

RE: win32 changes from 1.3

2002-05-22 Thread Allan Edwards
If your cwd is on another volume, that's a problem. This hurts services, since the cwd will always be c:\winnt\system32\. Yep, was installed on a non-C: drive I suggest we cwd to the server root on startup. We can do this in the winnt_mpm, or for all platforms in main(). Opinions? +1

Re: dist/httpd/

2002-05-22 Thread William A. Rowe, Jr.
At 04:52 PM 5/22/2002, you wrote: On Wed, May 22, 2002 at 02:22:03PM -0500, William A. Rowe, Jr. wrote: ... - Rename httpd-2.0.36-win32.zip to httpd-2.0.36-source_only-win32.zip Allow me to make some changes first. Um. How is httpd-2.0.36-win32.zip different from the .tar.gz ? In other

Re: dist/httpd/

2002-05-22 Thread Aaron Bannert
And Josh and I are suggesting we add -src to the end of every package name in the source distro directory. +1 -aaron

[STATUS] (apache-1.3) Wed May 22 23:45:06 EDT 2002

2002-05-22 Thread Rodent of Unusual Size
APACHE 1.3 STATUS: -*-text-*- Last modified at [$Date: 2002/05/22 18:06:38 $] Release: 1.3.25-dev: In development A release is proposed for end of May 2002. Jim volunteers to be RM. 1.3.24: Tagged Mar 21, 2002.

[STATUS] (httpd-2.0) Wed May 22 23:45:10 EDT 2002

2002-05-22 Thread Rodent of Unusual Size
APACHE 2.0 STATUS: -*-text-*- Last modified at [$Date: 2002/05/22 05:56:43 $] Release: 2.0.37 : in development. 2.0.36 : released May 6, 2002 as GA. 2.0.35 : released April 5, 2002 as GA. 2.0.34 : tagged March 26, 2002. 2.0.33

RE: win32 changes from 1.3

2002-05-22 Thread William A. Rowe, Jr.
At 06:37 PM 5/22/2002, you wrote: If your cwd is on another volume, that's a problem. This hurts services, since the cwd will always be c:\winnt\system32\. Yep, was installed on a non-C: drive I suggest we cwd to the server root on startup. We can do this in the winnt_mpm, or for