Re: apreqXXXXXX temp files remain after processing uploads greater than 256kb. Further large upload fails

2007-03-14 Thread Steve Hay
Randy Kobes wrote: On Fri, 9 Mar 2007, Joe Schaefer wrote: Randy, do you know why we use the APR_FILE_NOCLEANUP flag? Maybe we should just remove that and see if it fixes the problem Vinay is seeing. Hi Steve, and all, If you remember from

Re: apreqXXXXXX temp files remain after processing uploads greater than 256kb. Further large upload fails

2007-03-14 Thread Joe Schaefer
Steve Hay [EMAIL PROTECTED] writes: I tried your patch with the current svn version (revision 518242), but I'm still seeing intermittent failures (usually in tests 15, 16 and/or 20) either when I run nmake test from the top-level, or when I run: perl -Iblib/arch -Iblib/lib t/TEST -verbose=1

CGI app reports broken pipe error

2007-03-14 Thread Stas Oskin
Hi. I have a custom CGI application writing binary data to stdout. Recently, probably after some upgrade, I begin receiving write errors with the system error Broken pipe. The only way to proceed writing is to discard the data portion I'm trying to write and continue. Can someone advice how to

Re: sed filter module

2007-03-14 Thread Frank
Just wanted to add my two cents worth... We are using mod_line_edit a lot and would like to see a similar functionality coming with Apache by default. :-) When I am correct mod_line_edit has the 'wrong' license model for being included into Apache by default. Just for your infomation:

Re: sed filter module

2007-03-14 Thread Nick Kew
On Wed, 14 Mar 2007 10:07:49 +0100 Frank [EMAIL PROTECTED] wrote: Just wanted to add my two cents worth... We are using mod_line_edit a lot and would like to see a similar functionality coming with Apache by default. :-) Sounds like a vote. When I am correct mod_line_edit has the 'wrong'

Re: sed filter module

2007-03-14 Thread Jim Jagielski
On Mar 14, 2007, at 5:07 AM, Frank wrote: RewriteBodyLine 'http://(.*?)/(.*)/(.*)' 'http://${LOWERCASE:$1}/$ {MD5:$2}/$3' Yeah, that would be useful... Of course, the main issue is that whereas mod_rewrite can afford to be dog slow, because, after all, the URLs aren't *that* big,

Re: sed filter module

2007-03-14 Thread Nick Kew
On Wed, 14 Mar 2007 09:25:11 -0400 Jim Jagielski [EMAIL PROTECTED] wrote: On Mar 14, 2007, at 5:07 AM, Frank wrote: RewriteBodyLine 'http://(.*?)/(.*)/(.*)' 'http://${LOWERCASE:$1}/$ {MD5:$2}/$3' Yeah, that would be useful... Of course, the main issue is that whereas mod_rewrite

Re: sed filter module

2007-03-14 Thread Nick Kew
On Wed, 14 Mar 2007 13:45:47 + Nick Kew [EMAIL PROTECTED] wrote: As for the particular case Frank asked for, that works by expanding the union to include a function pointer alongside the strmatch and regexp cases. So it's also a per-rule configuration flag, and never touches the code

Re: sed filter module

2007-03-14 Thread Joe Orton
On Tue, Mar 13, 2007 at 09:24:25AM -0400, Jim Jagielski wrote: There have been times when having a simple sed filter in Apache would be useful... I used to use just ext_filter to do this, but this got more and more painful the more I used it. So awhile ago I made mod_sed_filter which I find

Re: sed filter module

2007-03-14 Thread Nick Kew
On Wed, 14 Mar 2007 14:32:13 + Joe Orton [EMAIL PROTECTED] wrote: 1) the filtering logic is broken and will consume RAM proportional to response size. I must've missed that when I looked. I thought it used the same logic as mod_line_edit, which is very careful about that. Oh, I guess

Re: sed filter module

2007-03-14 Thread Jim Jagielski
On Mar 14, 2007, at 11:01 AM, Nick Kew wrote: Oh, I guess you mean the copying to get a null-terminated string when applying a regexp? And I see it's repeated for every regexp (ouch)! mod_line_edit uses a local pool which is cleared at the end of each brigade, and avoids multiple copies of

Re: sed filter module

2007-03-14 Thread Joe Orton
On Wed, Mar 14, 2007 at 03:01:53PM +, Nick Kew wrote: On Wed, 14 Mar 2007 14:32:13 + Joe Orton [EMAIL PROTECTED] wrote: 1) the filtering logic is broken and will consume RAM proportional to response size. I must've missed that when I looked. I thought it used the same logic

Re: sed filter module

2007-03-14 Thread Nick Kew
On Wed, 14 Mar 2007 15:27:44 + Joe Orton [EMAIL PROTECTED] wrote: On Wed, Mar 14, 2007 at 03:01:53PM +, Nick Kew wrote: On Wed, 14 Mar 2007 14:32:13 + Joe Orton [EMAIL PROTECTED] wrote: 1) the filtering logic is broken and will consume RAM proportional to response size.

Re: sed filter module

2007-03-14 Thread Nick Kew
On Wed, 14 Mar 2007 11:15:00 -0400 Jim Jagielski [EMAIL PROTECTED] wrote: On Mar 14, 2007, at 11:01 AM, Nick Kew wrote: Oh, I guess you mean the copying to get a null-terminated string when applying a regexp? And I see it's repeated for every regexp (ouch)! mod_line_edit uses a local

Check for IP address in network/netmask

2007-03-14 Thread Dr. Peter Poeml
Hi, what is the standard way to store network/netmask combos, and check if a client IP address is contained in them? I once saw a function for that but I can't find it now. Maybe it was apr_ipsubnet_test(), as used in modules/aaa/mod_authz_host.c. Probably this does what I need. I find further

Re: sed filter module

2007-03-14 Thread Joe Orton
On Wed, Mar 14, 2007 at 03:45:05PM +, Nick Kew wrote: Nope. Just one brigades worth at a time. And the most likely case for that to be an entire document is when it's a static file, and document == brigade == bucket. I'm not sure what you're saying here. Which do you agree with: a)

Re: CGI app reports broken pipe error

2007-03-14 Thread Jeff Trawick
On 3/14/07, Stas Oskin [EMAIL PROTECTED] wrote: Hi. I have a custom CGI application writing binary data to stdout. Recently, probably after some upgrade, I begin receiving write errors with the system error Broken pipe. that should mean that the web client disconnected, and your CGI shouldn't

Re: sed filter module

2007-03-14 Thread Nick Kew
On Wed, 14 Mar 2007 16:56:41 + Joe Orton [EMAIL PROTECTED] wrote: On Wed, Mar 14, 2007 at 03:45:05PM +, Nick Kew wrote: Nope. Just one brigades worth at a time. And the most likely case for that to be an entire document is when it's a static file, and document == brigade ==

Re: sed filter module

2007-03-14 Thread Justin Erenkrantz
On 3/14/07, Nick Kew [EMAIL PROTECTED] wrote: to content size? Other than when the entire contents arrive in a single bucket? Uh, a file bucket? -- justin

How do I interface with language negotiation

2007-03-14 Thread Joachim Zobel
Hi. Finally I am putting the pieces together for mod_i18n. The one thing that is missing is that it needs to talk to the language negotiation. I want language negotiation to select one out of a set of several languages I can deliver. Sincerely, Joachim

Re: 3.0 - Proposed Requirements

2007-03-14 Thread Aaron Bannert
On Mon, Mar 12, 2007 at 02:53:14PM -0700, Shankar Unni wrote: Paul Querna wrote: - High Performance Event System Calls (KQueue, Event Ports, EPoll, I/O Completion Ports). This is a tricky area. You definitely don't want to tie yourself to a small subset of OSes. The real magic trick,

Re: sed filter module

2007-03-14 Thread Jim Jagielski
As a rough proof of concept, I refactored the design, allowing for the pattern matching and substitution to be done as soon as we have a line. Also is some rough ability to pass the data to the next filter after we get more than ~AP_MIN_BYTES_TO_WRITE bytes. Doesn't alleviate all the problems,

Re: sed filter module

2007-03-14 Thread Joe Orton
On Wed, Mar 14, 2007 at 06:38:48PM +, Nick Kew wrote: Now, what leads you to suppose mod_line_edit uses RAM proportional to content size? Other than when the entire contents arrive in a single bucket? Because it implements the naive filter implementation, equivalent to: e =

Re: New to module development

2007-03-14 Thread Drew Bertola
Joe Lewis wrote: It should be provided with your distribution : apache-devel is the RPM you need. And probably apr-devel and apr-util-devel -- Drew

Re: CGI app reports broken pipe error

2007-03-14 Thread Stas Oskin
Hi. that should mean that the web client disconnected, and your CGI shouldn't keep pumping out data So the moment the client is gone, and the CGI app attempts to send data, it will receive broken pipe (as there indeed no pipe anymore)? Is this the only reason for the error? prefork MPM and

Apache with ssl on kernel 2.6 is slow

2007-03-14 Thread SSingh
Hi, I recently shifted our apache server from linux kenrel 2.4.19 to 2.6 and openssl 0.9.8. I have found out that it has become very slow under moderate load when using ssl. I have compared the performance using Microsoft ACT tool. Linux kernel 2.6 is running with NPTL configuration.

[STATUS] (httpd-trunk) Wed Mar 14 23:46:31 2007

2007-03-14 Thread Rodent of Unusual Size
APACHE 2.3 STATUS: -*-text-*- Last modified at [$Date: 2006-08-22 16:41:03 -0400 (Tue, 22 Aug 2006) $] The current version of this file can be found at: * http://svn.apache.org/repos/asf/httpd/httpd/trunk/STATUS Documentation status is maintained

[STATUS] (httpd-2.0) Wed Mar 14 23:47:32 2007

2007-03-14 Thread Rodent of Unusual Size
APACHE 2.0 STATUS: -*-text-*- Last modified at [$Date: 2007-02-16 15:40:35 -0500 (Fri, 16 Feb 2007) $] The current version of this file can be found at: * http://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x/STATUS Documentation status is