Re: mod_python 3.2.3b available for testing

2005-10-25 Thread Jim Gallacher
Nick wrote: More info: python 2.4.2 on Linux: import tempfile t = tempfile.TemporaryFile() t open file 'fdopen', mode 'w+b' at 0xb7df07b8 type(t) type 'file' dir(t) ['__class__', '__delattr__', '__doc__', '__getattribute__', '__hash__', '__init__', '__iter__', '__new__',

Re: mod_python 3.2.3b available for testing

2005-10-25 Thread Nick
Jim Gallacher wrote: So this is an inconsistency within Python. Should mod_python attempt to correct it, or just claim a Python bug? I think we should correct it. I'm sure users don't care that we implement this with TemporaryFile. That being said, I wonder how many applications on Windows

Re: mod_python 3.2.3b available for testing

2005-10-25 Thread Jorey Bump
Jim Gallacher wrote: Nick wrote: More info: python 2.4.2 on Linux: import tempfile t = tempfile.TemporaryFile() t open file 'fdopen', mode 'w+b' at 0xb7df07b8 type(t) type 'file' dir(t) ['__class__', '__delattr__', '__doc__', '__getattribute__', '__hash__', '__init__', '__iter__',

Re: mod_python 3.2.3b available for testing

2005-10-25 Thread Jim Gallacher
Nick wrote: Jim Gallacher wrote: So this is an inconsistency within Python. Should mod_python attempt to correct it, or just claim a Python bug? I think we should correct it. I'm sure users don't care that we implement this with TemporaryFile. That being said, I wonder how many

Re: mod_python 3.2.3b available for testing

2005-10-25 Thread Nick
Jim Gallacher wrote: You may have misunderstood. I was not suggesting that tempfile.TemporaryFile was introduced in 3.1.4, only that it existed there. Looking at the svn repository I see it's used in 3.0.0-beta and 2.7.9, so this bug has been lurking for a while. ;) Yes, although the fact

Re: mod_python 3.2.3b available for testing

2005-10-25 Thread Jim Gallacher
Indrek Järve wrote: This behaviour has been with Python for quite a while, so claiming it's simply a Python bug will be the same as declaring we don't support Windows. Our company's software that runs on Windows and uses mod_python simply patches util.py with the following change: 227c227

Re: mod_python 3.2.3b available for testing

2005-10-25 Thread Jim Gallacher
Jorey Bump wrote: Jim Gallacher wrote: Nick wrote: More info: python 2.4.2 on Linux: import tempfile t = tempfile.TemporaryFile() t open file 'fdopen', mode 'w+b' at 0xb7df07b8 type(t) type 'file' dir(t) ['__class__', '__delattr__', '__doc__', '__getattribute__', '__hash__',

Static build of libapreq2-2.07-rc3

2005-10-25 Thread Bojan Smojver
Just for kicks, I tried that today with Apache 2.1.8-beta. The instructions are a bit stale in the INSTALL script. Here are the questions to the points mentioned under static install: 1. What is the CPPFLAGS -I supposed to be? Top level libapreq2 source directory? Or some other directory under it

Re: svn commit: r327945 - in /httpd/httpd/trunk: CHANGES modules/http/http_core.c modules/http/http_request.c server/mpm/experimental/event/event.c

2005-10-25 Thread Joe Orton
On Mon, Oct 24, 2005 at 03:33:17AM -, Brian Pane wrote: Author: brianp Date: Sun Oct 23 20:33:14 2005 New Revision: 327945 URL: http://svn.apache.org/viewcvs?rev=327945view=rev Log: Async write completion for Event MPM (backported from async-dev branch to 2.3 trunk) httpd-test runs

Re: authz: file-group ugliness

2005-10-25 Thread Nick Kew
On Tuesday 25 October 2005 00:29, you wrote: This would be OK except that there is a bigger problem that I looked into trying to fix at one point but never completed it. The problem is the duplication of authorization types. Currently we have both mod_authz_groupfile and mod_authz_dbm

Re: authz: file-group ugliness

2005-10-25 Thread Dirk-Willem van Gulik
AuthOrder user group dbm-group which specifies an order of authz checks, and makes the last one 'authoritative' in terms of the old logic. Of course that still leaves file-group looking lonely. Maybe what that wants is a provider from authz_[file|dbm|dbd|ldap|etc] ? Or go back to this

ProxyPassReverseCookieDomain in 2.0?

2005-10-25 Thread Jeff Trawick
The patch in PR 10722 seems to be very widely referred to (perhaps widely used as well ;) ). Are there any known issues with that patch? Is there any technical reason why it couldn't be applied to 2.0?

Gentoo (Was: mod_python 3.2.3b available for testing)

2005-10-25 Thread Gregory (Grisha) Trubetskoy
Hmmm... Looking at /usr/lib/python2.4/httplib.py, sock.readline() gets an EOF upon reading the first byte. Do you see anything in the error logs associated with this, like a segfault? To make it easier to isolate, try editing test.py to comment out all other tests and just leave this one.

rproxy close_wait high cpu

2005-10-25 Thread Jon Snow
Hi, I am running solaris 8 with apache 2.0.53 over openssl 0.9.7 as a reverse proxy which terminates and reestablishes SSL to the backend. I run the worker mpm with 100 threads per process. The server has minimal load and uses a crypto card. The build is pretty minimal and runs in a gateway

Re: authz: file-group ugliness

2005-10-25 Thread Graham Leggett
Dirk-Willem van Gulik said: Or go back to this naming concept floating at one point: require group ldap:foo which solves this class of problems (but kills the failover part; i.e. getting a group check done in ldap if possible; but fall trough to htpasswd if all is down). This should

Mapping proxy inbound to outbound connections

2005-10-25 Thread Jon Snow
Hi, I want to tie together the inbound and outbound connections for a forward or reverse proxy session. I figured I would add the source ports to the log which would enable me to track the connections through firewall logs etc. based on addressing/port combinations. I was looking at writing a

Apache with SCTP streams.

2005-10-25 Thread Preethi Natarajan
Hello, I've been working on this patch to make apr and httpd work with SCTP streams. Stream Control Transmission Protocol (SCTP - RFC2960) is a transport layer protocol capable of providing reliable (in-order, no loss, no duplicates, no error) message oriented service to application. Other

configurable: add referrer to error logs

2005-10-25 Thread Brian Akins
If we can determine the referer, we log it as well on all calls to log error. Can we make this configurable? It's rather annoying in a lot of cases. -- Brian Akins Lead Systems Engineer CNN Internet Technologies

Re: mod_python 3.2.3b available for testing

2005-10-25 Thread Nick
This may be a Python Windows thing, but it shows up in mod_python: When using util.FieldStorage on multipart/form-data encoded POST data containing a file, in Linux a field.file will yield a file object (actually a subclass of file), but in Windows you have to get the file object through

Re: mod_python 3.2.3b available for testing

2005-10-25 Thread Nick
More info: python 2.4.2 on Linux: import tempfile t = tempfile.TemporaryFile() t open file 'fdopen', mode 'w+b' at 0xb7df07b8 type(t) type 'file' dir(t) ['__class__', '__delattr__', '__doc__', '__getattribute__', '__hash__', '__init__', '__iter__', '__new__', '__reduce__', '__reduce_ex__',

Re: authz: file-group ugliness

2005-10-25 Thread William A. Rowe, Jr.
Dirk-Willem van Gulik wrote: AuthOrder user group dbm-group which specifies an order of authz checks, and makes the last one 'authoritative' in terms of the old logic. Of course that still leaves file-group looking lonely. Maybe what that wants is a provider from authz_[file|dbm|dbd|ldap|etc]

Re: mod_python 3.2.3b available for testing

2005-10-25 Thread Indrek Järve
This behaviour has been with Python for quite a while, so claiming it's simply a Python bug will be the same as declaring we don't support Windows. Our company's software that runs on Windows and uses mod_python simply patches util.py with the following change: 227c227 if

Re: authz: file-group ugliness

2005-10-25 Thread Brad Nicholes
Explain this a little further because I am a little confused. What do you intend to happen when a directive like: require group ldap:foo dbm:bar bash is issued? The problem here is the confusion as to which module is handling 'group'. In order for this to work, every authorization type

[PATCH] Add VIRTUAL_DOCUMENT_ROOT variable

2005-10-25 Thread Anish Mistry
The attached patch adds the VIRTUAL_DOCUMENT_ROOT so the VirtualDocumentRoot value is available to test for dynamic virtual hosts. The patch is against 2.0.55. http://am-productions.biz/docs/patch-modules_mappers_mod_vhost_alias.c -- Anish Mistry [EMAIL PROTECTED] AM Productions

Re: rproxy close_wait high cpu

2005-10-25 Thread William A. Rowe, Jr.
Jon Snow wrote: Hi, I am running solaris 8 with apache 2.0.53 over openssl 0.9.7 as a reverse proxy which terminates and reestablishes SSL to the backend. I run the worker mpm with 100 threads per process. The server has minimal load and uses a crypto card. The build is pretty minimal and

NameVirtualHosts SSL

2005-10-25 Thread Kenevel
Hi everyone, Firstly, this is a topic which may have been endlessly covered before, in which case I apologise and will go down in flames... But having referred to the 2.0 docs (well, more like the FAQ) at http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#vhosts2 I had a thought about the

Re: Apache with SCTP streams.

2005-10-25 Thread Ruediger Pluem
On 10/25/2005 04:14 PM, Preethi Natarajan wrote: Hello, I've been working on this patch to make apr and httpd work with SCTP streams. Thanks for bringing this to the dev list. Thanks to Joe for making a full stop comment in buzilla to end the discussion there. For all that are interested

Re: NameVirtualHosts SSL

2005-10-25 Thread Graham Leggett
Kenevel wrote: My question is why the server couldn't do some sort of reverse-lookup on its register of SSL certificates that are in use. Surely the server knows which certificate it is using to service the request (or else it wouldn't be able to decrypt its contents) and hence work out which

Re: mod_python 3.2.3b available for testing

2005-10-25 Thread Gregory (Grisha) Trubetskoy
On Tue, 25 Oct 2005, Nick wrote: So this is an inconsistency within Python. Should mod_python attempt to correct it, or just claim a Python bug? I think both. In fact, three things (1) fix it to provide a consistent interface (2) still support the broken behaviour (3) claim it is a bug

Re: NameVirtualHosts SSL

2005-10-25 Thread Joost de Heer
The one-virtual-host-per-ip limitation is imposed by SSL, it has nothing to do with the webserver. nitpick one-virtual-host-per-ip-and-port /nitpick There is an exception - if you use a wildcard certificate, you can run multiple virtual hosts on condition all the virtual hosts match the

Re: NameVirtualHosts SSL

2005-10-25 Thread Sander Temme
Mike, On Oct 25, 2005, at 10:43 AM, Kenevel wrote: My question is why the server couldn't do some sort of reverse- lookup on its register of SSL certificates that are in use. Surely the server knows which certificate it is using to service the request (or else it wouldn't be able No,

Re: NameVirtualHosts SSL

2005-10-25 Thread Michael Harrison
Thanks Graham, Joost and Sander, I hadn't expected for Apache to need to know which virtual host to use so early in the request process. Cheers Mike From: Sander Temme [EMAIL PROTECTED] Reply-To: dev@httpd.apache.org To: dev@httpd.apache.org Subject: Re: NameVirtualHosts SSL Date: Tue, 25

[PATCH] Multiple AuthUserFile support

2005-10-25 Thread Maxime Petazzoni
Hi, In the light of the issue reported by noodl at http://eul113.eu.verio.net/~noodl/apache_issues.txt I decided to implement multiple AuthUserFile support. The behavior is the same as for a single AuthUserFile : the first line matching the username is used, regardless of what's coming next.

Re: [PATCH] Multiple AuthUserFile support

2005-10-25 Thread Justin Erenkrantz
--On October 26, 2005 1:49:15 AM +0200 Maxime Petazzoni [EMAIL PROTECTED] wrote: In the light of the issue reported by noodl at http://eul113.eu.verio.net/~noodl/apache_issues.txt I decided to implement multiple AuthUserFile support. I don't get it. mod_authn_alias is the solution here.

Re: [PATCH] Multiple AuthUserFile support

2005-10-25 Thread Maxime Petazzoni
* Justin Erenkrantz [EMAIL PROTECTED] [2005-10-25 17:05:57]: --On October 26, 2005 1:49:15 AM +0200 Maxime Petazzoni [EMAIL PROTECTED] wrote: In the light of the issue reported by noodl at http://eul113.eu.verio.net/~noodl/apache_issues.txt I decided to implement multiple AuthUserFile

Re: svn commit: r327945 - in /httpd/httpd/trunk: CHANGES modules/http/http_core.c modules/http/http_request.c server/mpm/experimental/event/event.c

2005-10-25 Thread Brian Pane
On Oct 25, 2005, at 2:33 AM, Joe Orton wrote: httpd-test runs against the trunk are failing all over the place today, I guess caused by one of these changes... prefork is failing like: Failed TestStat Wstat Total Fail Failed List of Failed