making SSL connection in Apache 2.0

2005-12-04 Thread Lai Yiu Fai
I would like to write a module which requires to make outgoing SSL connection
and read the response.  Which set of function calls should I use to make it
with best portability in both prefork and thread MPM?  Would it be a problem
if I use direct OpenSSL calls?   Or mod_ssl provide these functions already?

Cheers,
-Fai


windows binaries

2005-12-04 Thread Stanley W








When the Apache 2.2.0 binaries for Windows will be available
for download?

 

Stanley








Re: Event MPM: Spinning on cleanups?

2005-12-04 Thread William A. Rowe, Jr.

Paul Querna wrote:


Best guess is that we corrupted a bucket brigade by double freeing it,
or something of that kind.  This is definitely a new behavior since the
async-write code was merged into trunk.

It is odd that we could of double-free'ed something on the connection
pool. Maybe it isn't a double-free issue at all...


My other thought comes down to the thread locking.  Perhaps we are looking
at an issue of two threads touching the per-thread non-locking allocator
at once?  The reason I suspect is that it -seems- your process ended up
with a linked block list with a cyclic loop.


Event MPM: Spinning on cleanups?

2005-12-04 Thread Paul Querna
I finally got around to upgrading to trunk w/ the Event MPM on one of my
machines. Within a couple hours of starting it, I had a process
spinning, and consuming 100% CPU.

Backtrace from the spinning thread:

(gdb) thread 6
[Switching to thread 6 (Thread 0x2045 (LWP 100189))]#0
apr_allocator_free
(allocator=0x2054ab80, node=0x205a2000) at memory/unix/apr_pools.c:334
334 if (max_free_index != APR_ALLOCATOR_MAX_FREE_UNLIMITED
(gdb) where
#0  apr_allocator_free (allocator=0x2054ab80, node=0x205a2000)
at memory/unix/apr_pools.c:334
#1  0x280eb952 in apr_bucket_free (mem=0x0) at
buckets/apr_buckets_alloc.c:182
#2  0x280e9915 in heap_bucket_destroy (data=0x205a4090)
at buckets/apr_buckets_heap.c:36
#3  0x280e9a54 in apr_brigade_cleanup (data=0x2059e6b0)
at buckets/apr_brigade.c:44
#4  0x280e9a8b in brigade_cleanup (data=0x2059e6b0) at
buckets/apr_brigade.c:34
#5  0x282021bd in run_cleanups (cref=0x2059e028)
at memory/unix/apr_pools.c:2044
#6  0x28202f39 in apr_pool_clear (pool=0x2059e018)
at memory/unix/apr_pools.c:689
#7  0x08081063 in worker_thread (thd=0x81d1660, dummy=0x0) at event.c:682
#8  0x2820b3e4 in dummy_worker (opaque=0x0) at threadproc/unix/thread.c:138
#9  0x2823720b in pthread_create () from /usr/lib/libpthread.so.2
#10 0x282fa1ef in _ctx_start () from /lib/libc.so.6


OS: FreeBSD 6.0-STABLE
APR: Trunk
APR-Util: Trunk
HTTPD: Trunk

Best guess is that we corrupted a bucket brigade by double freeing it,
or something of that kind.  This is definitely a new behavior since the
async-write code was merged into trunk.

It is odd that we could of double-free'ed something on the connection
pool. Maybe it isn't a double-free issue at all...

I'm too tired to debug much of it tonight. Maybe later this week I will
dig deeper.

-Paul



Re: httpd 2.2 missing as product in bugzilla

2005-12-04 Thread Sander Temme


On Dec 4, 2005, at 3:32 PM, William A. Rowe, Jr. wrote:


I don't know, but RoUS should.  They are his cron activities.


Actually, RoUS sends the STATUS files around on Wednesday. The  
Bugzilla cron reports are mine, were indeed broken by the name  
change, and are fixed for next week. I didn't manually run them  
tonight but could if folks would like to see that happen.


S.


Bill

Ruediger Pluem wrote:

On 12/03/2005 09:34 PM, William A. Rowe, Jr. wrote:

Ruediger Pluem wrote:



Hi all,

I just worked on a bug report and noticed that there is no  
setting for

"Apache http-2.2" in the
product selection box of bugzilla. I think this should be either  
added

or the current text for
"Apache http-2.0" should be exchanged against "Apache http-2.x" to
avoid confusing to the user.



Done.

It's simply Apache httpd-2 now.

Thanks for doing this. Is it possible that this renaming killed  
the weekly bug report

for "Apache http-2.0" that is sent to the dev list?
Regards
Rüdiger
.





--
[EMAIL PROTECTED]  http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF



smime.p7s
Description: S/MIME cryptographic signature


Re: httpd 2.2 missing as product in bugzilla

2005-12-04 Thread William A. Rowe, Jr.

I don't know, but RoUS should.  They are his cron activities.

Bill

Ruediger Pluem wrote:


On 12/03/2005 09:34 PM, William A. Rowe, Jr. wrote:


Ruediger Pluem wrote:



Hi all,

I just worked on a bug report and noticed that there is no setting for
"Apache http-2.2" in the
product selection box of bugzilla. I think this should be either added
or the current text for
"Apache http-2.0" should be exchanged against "Apache http-2.x" to
avoid confusing to the user.



Done.

It's simply Apache httpd-2 now.




Thanks for doing this. Is it possible that this renaming killed the weekly bug 
report
for "Apache http-2.0" that is sent to the dev list?

Regards

Rüdiger


.





Re: httpd 2.2 missing as product in bugzilla

2005-12-04 Thread Ruediger Pluem


On 12/03/2005 09:34 PM, William A. Rowe, Jr. wrote:
> Ruediger Pluem wrote:
> 
>> Hi all,
>>
>> I just worked on a bug report and noticed that there is no setting for
>> "Apache http-2.2" in the
>> product selection box of bugzilla. I think this should be either added
>> or the current text for
>> "Apache http-2.0" should be exchanged against "Apache http-2.x" to
>> avoid confusing to the user.
> 
> 
> Done.
> 
> It's simply Apache httpd-2 now.
> 

Thanks for doing this. Is it possible that this renaming killed the weekly bug 
report
for "Apache http-2.0" that is sent to the dev list?

Regards

Rüdiger



Bug report for Apache httpd-1.3 [2005/12/04]

2005-12-04 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  |
| |   |   |  |  |
| 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|
|10446|Opn|Blk|2002-07-03|spaces in link to http server seen as foreign char|
|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|
|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|
|12096|New|Nor|2002-08-27|apxs does not handle binary dists installed at non|
|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|Opn|Maj|2002-09-12|Apache hanging in Keepalive State |
|12770|Opn|Nor|2002-09-18|ErrorDocument fail redirecting error 400  |
|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|
|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::|
|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  |
|14443|New|Maj|2002-11-11|Keep-Alive randomly causes TCP RSTs   |
|14448|Opn|Cri|2002-11-11|Apache WebServer not starting if installed on Comp|
|14518|Opn|Nor|2002-11-13|QUERY_STRING parts not incorporated by mod_rewrite|
|14670|New|Cri|2002-11-19|Apache didn't deallocate unused memory|
|14748|New|Nor|2002-11-21|Configure Can't find DBM on Mac OS X  |
|15011|New|Nor|2002-12-03|Apache processes not timing out on Solaris 8  |
|15028|New|Maj|2002-12-03|RedirectMatch does not escape properly|
|16236|New|Maj|2003-01-18|Include directive in Apache is not parsed within c|
|16241|New|Maj|2003-01-19|Apache processes takes 100% CPU until killed manua|
|16492|New|Maj|2003-01-28|mod_proxy doesn't correctly retrieve values from C|
|16493|New|Nor|2003-01-28|Incorrect handling of several Cache-Control direct|
|16556|

Re: Question about memory in httpd

2005-12-04 Thread Christophe Jaillet
First of all, thank you for this interresting point of view.

Ok with your comments, but :
1) apache is not supposed to run *only* on linux and freebsd


2) if checking memory allocation is really not a concern, should places
in httpd that checks for NULL be removed ?
For exemple, in /modules/proxy/ajp_msg.c
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
msg->buf = (apr_byte_t *)apr_palloc(pool, AJP_MSG_BUFFER_SZ);

/* XXX: This should never happen
 * In case if the OS cannont allocate 8K of data
 * we are in serious trouble
 * No need to check the alloc return value, cause the
 * core dump is probably the best solution anyhow.
 */
if (msg->buf == NULL) {
ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL,
  "ajp_msg_create(): can't allocate AJP message
memory");
return APR_ENOPOOL;
}

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


3) in some places, memory allocation can be delayed a bit, do you think
it could be interesting to dig futher in this direction and see if it could
be a win ?
For exemple, in /modules/generators/mod_status.c in function status_handler,
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
pid_buffer = apr_palloc(r->pool, server_limit * sizeof(pid_t));
stat_buffer = apr_palloc(r->pool, server_limit * thread_limit *
sizeof(char));

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
could be set moved around line 312 (instead of 257).
In this case,
- httpd would maybe not require at all this memory (if one of the
tests at the beginning fails)
- httpd would request for the memory (a bit) latter


CJ



"Paul Querna" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Christophe Jaillet wrote:
> > When going thrue the code, looking at apr_palloc and friends, one can
see
> > that :
> > * in some places (few of them) , the returned pointer is checked
against
> > NULL
> > * in other places (most of them), it is not.
> >
> > I've always been told that checking return value is a good idea,
(especially
> > with memory allocation in order to avoid disasters) so should all the
> > apr_palloc (and friends) calls be checked or are they special reasons in
> > httpd not to care about short in memory situation ?
>
> Actually, on most operating systems, including Linux and FreeBSD, you
> will NEVER get returned NULL.
>
> Instead when your operating system is truly out of memory, it will kill
> your process, and you won't have any chance of handling it.
>
> Read a whole blog post about it:
> http://baus.net/memory-management
>
> -Paul
>





Re: Question about memory in httpd

2005-12-04 Thread Igor Sysoev

On Sat, 3 Dec 2005, Paul Querna wrote:


Christophe Jaillet wrote:

When going thrue the code, looking at apr_palloc and friends, one can see
that :
* in some places (few of them) , the returned pointer is checked against
NULL
* in other places (most of them), it is not.

I've always been told that checking return value is a good idea, (especially
with memory allocation in order to avoid disasters) so should all the
apr_palloc (and friends) calls be checked or are they special reasons in
httpd not to care about short in memory situation ?


Actually, on most operating systems, including Linux and FreeBSD, you
will NEVER get returned NULL.


Actully, Linux and FreeBSD will return NULL and set errno to ENOMEM,
if you try to allocate in sum more than RLIMIT_DATA limit.


Instead when your operating system is truly out of memory, it will kill
your process, and you won't have any chance of handling it.

Read a whole blog post about it:
http://baus.net/memory-management



Igor Sysoev
http://sysoev.ru/en/


Re: What do you want in HTTPD 2.4/3.0/X/GREEN?

2005-12-04 Thread Maxime Petazzoni
* Nick Kew <[EMAIL PROTECTED]> [2005-12-04 15:55:30]:

> What we've seen was at apachecon.  You were there, and even shared
> a room with Micha!  Unfortunately he seems to have disappeared since
> then:-(  Search mbox for post-apachecon discussion.

Yep, I was there. But it was a long time ago (yes, a few month in a
long time for me), and I just wondered if we at least settled on a
design.

I'll search (too lame the httpd-mbox-search SoC also failed :/) the
archives.

- Sam

-- 
Maxime Petazzoni (http://www.bulix.org)
 -- gone crazy, back soon. leave message.


signature.asc
Description: Digital signature


Re: What do you want in HTTPD 2.4/3.0/X/GREEN?

2005-12-04 Thread Nick Kew
On Sunday 04 December 2005 15:09, Maxime Petazzoni wrote:

> I would like to take a look at the mpm-perchild project. Is there a
> design document available ? Maybe we should talk about what we
> need/want, too.

What we've seen was at apachecon.  You were there, and even shared
a room with Micha!  Unfortunately he seems to have disappeared since
then:-(  Search mbox for post-apachecon discussion.

-- 
Nick Kew


Re: mod_proxy error, segmentation fault

2005-12-04 Thread Joost de Heer
RewriteRule "(.*)" 
"http://uxdev14.sofinco.fr:8080%{REQUEST_URI}"; [P,L]


Try without the " around the second argument?

Joost


Re: What do you want in HTTPD 2.4/3.0/X/GREEN?

2005-12-04 Thread Maxime Petazzoni
Hi,

* Jim Jagielski <[EMAIL PROTECTED]> [2005-12-03 14:56:22]:

> > * A Perchild MPM/replacement:  The SoC  perchild-replacement project 
> > didn't work out.  We have a basic design that is sound, but we need to 
> > actually write the code.
> > 
> 
> +1 as a VERY useful thing for 2.2/2.4

I would like to take a look at the mpm-perchild project. Is there a
design document available ? Maybe we should talk about what we
need/want, too.

- Sam

-- 
Maxime Petazzoni (http://www.bulix.org)
 -- gone crazy, back soon. leave message.


signature.asc
Description: Digital signature


Re: mod_proxy error, segmentation fault

2005-12-04 Thread Christophe Yayon

Christophe Yayon wrote:

Hi,

Here is my configuration :



ServerName portail.polen.xxx.fr
CustomLog /var/log/apache21/access-portail.log combined

Order deny,allow
Allow from all

RewriteEngine On
RewriteRule "(.*)" 
"http://uxdev14.sofinco.fr:8080%{REQUEST_URI}"; [P,L]




ServerName appli1.polen.x.fr
CustomLog /var/log/apache21/access-appli1.polen.log combined
RewriteEngine On
RewriteRule ^(\/?)(.*)?(.*)$ 
http://portail.polen.xx.fr/polen/servlet/ProxyServlet?polenAppliBase=http://appli1.polen..fr&polenAppli 


Page=$2&%{QUERY_STRING} [P]

Order deny,allow
Allow from all




# appli2

# global
ServerName appli2.polen..fr
CustomLog /var/log/apache21/access-appli2.polen.log combined
RewriteEngine On
RewriteRule ^(\/?)(.*)?(.*)$ 
http://portail.polen.xx.fr/polen/servlet/ProxyServlet?polenAppliBase=http://appli2.polen..fr&polenAppli 


Page=$2&%{QUERY_STRING} [P]

Order deny,allow
Allow from all





Ruediger Pluem wrote:


On 11/26/2005 07:40 PM, Christophe Yayon wrote:

Hi all,

i have just tried with the last 2.1.10 and i have the same problem :

1. in error logs :
[Sat Nov 26 19:29:55 2005] [error] [client 10.133.2.63] proxy: error
reading status line from remote server (null), referer:
http://portail.polen.sofinco.fr/polen/
[Sat Nov 26 19:29:55 2005] [error] [client 10.133.2.63] proxy: Error
reading from remote server returned by /polen/images/passe.gif, referer:
http://portail.polen.sofinco.fr/polen/
[Sat Nov 26 19:29:56 2005] [notice] child pid 25976 exit signal
Segmentation fault (11), possible coredump in /tmp



Strange that the remote server is null. Please post your proxy 
configuration

and your RewriteRules.

[..cut..]


Reading symbols from /lib/tls/libresolv.so.2...done.

Loaded symbols for /lib/tls/libresolv.so.2
#0  apr_brigade_cleanup (data=0x8398980) at buckets/apr_brigade.c:44
44  apr_bucket_delete(e);
(gdb) bt full
#0  apr_brigade_cleanup (data=0x8398980) at buckets/apr_brigade.c:44
No locals.
#1  0xb7f24e7d in apr_brigade_destroy (b=0x8398980) at
buckets/apr_brigade.c:53
No locals.
#2  0x080726f4 in ap_core_output_filter (f=0xaa083538, b=0x8398980) at
core_filters.c:876
hdtr = {headers = 0xb41c3ff8, numheaders = 134740504, trailers =
0x8392910, numtrailers = 0}
bytes_sent = 0
flags = 0
nbytes = 1429
nvec_trailers = 0
vec = {{iov_base = 0x838d208, iov_len = 206}, {iov_base =
0x8394a09, iov_len = 1223}, {iov_base = 0x0, iov_len = 0}, {iov_base =
0xaa083aa0, iov_len = 2852666000}, {iov_base = 0xb41c3f48, iov_len =
3083217623}, {iov_base = 0x0,
iov_len = 2852666000}, {iov_base = 0xb41c3f48, iov_len =
3083217643}, {iov_base = 0x8392910, iov_len = 0}, {iov_base =
0xb41c3f30, iov_len = 0}, {iov_base = 0x838e938, iov_len = 0}, {iov_base
= 0xb41c3f68, iov_len = 134646597}, {iov_base = 0x0,
iov_len = 0}, {iov_base = 0x0, iov_len = 0}, {iov_base = 0x8393960,
iov_len = 137967992}, {iov_base = 0xb41c3ff8, iov_len = 134740481},
{iov_base = 0x8393960, iov_len = 137967992}}
flen = Variable "flen" is not available.
(gdb) thread apply all bt full



Possibly a corrupted brigade. I am a little bit astonished that the 
stacktrace isn't longer.

So could you please do the following:

1. Add the contents of .gdbinit from the root directory of the 2.1.10 
tar ball to your .gdbinit

   (see http://httpd.apache.org/dev/debugging.html#gdb)

2. Issue the following commands:

gdb /opt/apache21/bin/httpd /tmp/core.25976
bt
frame 2
dump_brigade b
dump_filters f

[..cut..]

Please open up a bugzilla report with your mail as Joe suggested.

Regards

Rüdiger




Hi again,


i have post a bug report, i encounter the problem again, even with 2.2.0 
release.
The bug number is 37770 
(http://issues.apache.org/bugzilla/show_bug.cgi?id=37770)


here is my last post which give more informations :

I have done some differents stress tests :

1. with a debug LogLevel : no problem (see my last post), i have the problem
only with any other level (warn, notice, info, crit, ...)

2. with others backends servers (simple .html on an apache 2.0.54 
instead of a

.jsp on a Tomcat-5.5.12) : no problem. Of course, no error on Tomcat backend
server, and when i bypass reverse proxy, or when i use apache 2.0.55 
(instead of

2.2.0 with mod_proxy), i don't get any error.

3. sometimes i get a segmentation fault  and here a trace (i have used 
.gdbinit

of httpd-2.2.0 directory) :

--
gdb /opt/apache22/bin/httpd /tmp/core.7637
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.

Type "show copyin

Re: What do you want in HTTPD 2.4/3.0/X/GREEN?

2005-12-04 Thread Matthieu Estrade
Paul Querna wrote:

> My intention is for this to be a wide open brainstorming thread.
>
> I expect that we will be able to discuss several ideas in much more
> detail at the Hackathon next week, but I really want to get all ideas
> 'on the table'.
>
> I have a few things I would like to see, but I am sure there are
> perhaps hundreds of other major features that other people want.  It
> helps to know what everyone else is thinking about new features,
> rather than one person going off an doing it all by themselves. (not
> that I'll stop anyone from that either).
>
> Here is my list:
>
> * Async/Event MPM: Complete Async pipeline for static files.  I
> believe we can seriously give every existing
> single-threaded-event-based server a run for their money on every
> existing benchmark.  Toss in some dynamic content, and a hybrid
> Event/Worker has serious potential.  Some of this work is ongoing in
> the async-read dev branch, but there is plenty more to do.
>
> * A Perchild MPM/replacement:  The SoC  perchild-replacement project
> didn't work out.  We have a basic design that is sound, but we need to
> actually write the code.

A perchild (threaded) mpm would be really interesting considering all
the shared memory issues we have because of the fork/thread mpm.
Doing some caching, session tracking become difficult and not really
stable on some plateform with the shared memory.

>
> * HTTP Removed from the core:  I would like to be able to build with
> --disable-http. Sounds crazy, but it will hopefully shrink the core,
> and help us improve other protocol handlers like mod_ftp and mod_smtpd.
>
I agree, we have a famous core, which could be useful for many others
protocol, but actually, it still depend too much on http. I remember my
poc for mod_smtpd project, still many include or file related to http.




Re: What do you want in HTTPD 2.4/3.0/X/GREEN?

2005-12-04 Thread Olaf van der Spek
On 12/4/05, Ian Holsman <[EMAIL PROTECTED]> wrote:
> Garrett Rooney wrote:
> > On 12/3/05, Ian Holsman <[EMAIL PROTECTED]> wrote:
> >
> >> I'd also like to brainstorm a better solution to running Rails/Django
> >> applications inside of the httpd process than the SCGI/FastCGI solution
> >> which most people use.
> >
> > Out of curiosity, what do you think is wrong with the current FastCGI
> > method of running them?
> >
>
> configuration.
> for example in order for me to get typo running on my blog, I need 4
> rewrite rules. (and when I tried to do something slightly different, it
> took me a good hour to configure it properly with all the rewrite magic)

Wouldn't it be better to fix/improve the configuration?
Why should/would an 'in-process' request processor be easier to
configure than an out-of-process one?
Not all things can run inside httpd and for PHP I think it'd also be
nice if it ran outside.

> also when applications 'experts' like scott (the creator of typo) have
> issues like
> http://scottstuff.net/blog/articles/2005/07/20/apache-tuning-for-rails-and-fastcgi
>
> i think it isn't easy enough to run.
> what I am after is something as simple as
>
>
> RailsApp /foo/ rails-controller.rb [cache] [ENV=production]
>
>
> which would just work as a in-process application...
> making it as simple as running a PHP application is the goal.
>
> I don't like the trend i see with rails & django people saying apache is
> hard to use and switching to other web servers.


Re: What do you want in HTTPD 2.4/3.0/X/GREEN?

2005-12-04 Thread Alexander Lazic

Hi,

On Sam 03.12.2005 11:36, Paul Querna wrote:

My intention is for this to be a wide open brainstorming thread.

I expect that we will be able to discuss several ideas in much more
detail at the Hackathon next week, but I really want to get all ideas
'on the table'.


my whish is very simple:

Bugfix the open bugs at:

http://issues.apache.org/bugzilla/buglist.cgi?query_format=advanced&short_desc_type=allwordssubstr&short_desc=&product=Apache+httpd-2&long_desc_type=substring&long_desc=&bug_file_loc_type=allwordssubstr&bug_file_loc=&keywords_type=allwords&keywords=&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&emailassigned_to1=1&emailtype1=substring&email1=&emailassigned_to2=1&emailreporter2=1&emailcc2=1&emailtype2=substring&email2=&bugidtype=include&bug_id=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&cmdtype=doit&order=Bug+Number&field0-0-0=noop&type0-0-0=noop&value0-0-0=

432 bugs found.

What should be to define:

1.) Are all of these Bugs?
2.) How 'easy' can be a bug fixed?
3.) Which bugs are feature requests and how important is it for the
   'user'?

I hope some one of the know developer/organisator think also ;-)

jm2c

greetings

Alex


Re: What do you want in HTTPD 2.4/3.0/X/GREEN?

2005-12-04 Thread Justin Erenkrantz
On Sun, Dec 04, 2005 at 10:30:34AM +0100, Joost de Heer wrote:
> >>"This applies to processes forked off from Apache children servicing
> >>requests, not the Apache children themselves."
> >>
> >>So not exactly what I proposed, unless I am understanding that wrong?
> >
> >
> >If you want to limit the children themselves, then you want the standard 
> >ulimit controls available in your shell or whatnot.  -- justin
> 
> Because I want other processes to be able to grow larger than 20 MB. Would 
> be a rather useless database if it was limited to 20 MB memory

Huh?

You can set the ulimit for the duration of your httpd start up script.

# (ulimit -m 256; ./apachectl start)

The unit of measure for the ulimit command differs based on OS.  -- justin


Re: What do you want in HTTPD 2.4/3.0/X/GREEN?

2005-12-04 Thread Joost de Heer

"This applies to processes forked off from Apache children servicing
requests, not the Apache children themselves."

So not exactly what I proposed, unless I am understanding that wrong?



If you want to limit the children themselves, then you want the standard 
ulimit controls available in your shell or whatnot.  -- justin


Because I want other processes to be able to grow larger than 20 MB. Would be 
a rather useless database if it was limited to 20 MB memory


Joost