Re: apr_brigade_insert_file() LFS/Linux issues

2006-05-04 Thread Alexey Toptygin
On Thu, 4 May 2006, Alexey Toptygin wrote: Sorry, but are you running a 32 bit userland with your 64 bit kernel? If you are, then the compatibility layer is involved, and sendfile is still taking 32 bit values... Never mind, on reading the thread more closely, I see that you said 64 bit. I

Re: svn commit: r399668 - in /httpd/httpd/trunk: CHANGES modules/filters/mod_charset_lite.c

2006-05-04 Thread Ruediger Pluem
On 05/04/2006 10:51 PM, Jeff Trawick wrote: > > Here is the expected way to encounter that: > > > CharsetSourceEnc IBM-1047 > CharsetDefault ISO-8859-1 > > > > # already in the right charset > CharsetSourceEnc ISO-8859-1 > > > So we shouldn't go through the motions when processing /somed

Re: svn commit: r399668 - in /httpd/httpd/trunk: CHANGES modules/filters/mod_charset_lite.c

2006-05-04 Thread Jeff Trawick
On 5/4/06, Ruediger Pluem <[EMAIL PROTECTED]> wrote: On 05/04/2006 01:26 PM, wrote: > Author: trawick > > + *) mod_charset_lite: Bypass translation when the source and dest charsets > + are the same. [Jeff Trawick] As I am not an expert on mod_charset_lite a short question: Can this eve

Re: svn commit: r399668 - in /httpd/httpd/trunk: CHANGES modules/filters/mod_charset_lite.c

2006-05-04 Thread Ruediger Pluem
On 05/04/2006 01:26 PM, wrote: > Author: trawick > > + *) mod_charset_lite: Bypass translation when the source and dest charsets > + are the same. [Jeff Trawick] As I am not an expert on mod_charset_lite a short question: Can this ever happen apart from a situation where the server is m

[PATCH 5/6] hard restart on Linux #38737

2006-05-04 Thread Chris Darroch
Hi -- An older but essentially identical version of this patch is in Bugzilla PR #38737. Using the worker MPM (but not the event MPM), if Keep-Alives are enabled and the timeout is reasonably long (e.g., 15 seconds), then worker threads wait in poll() after handling a request for any furthe

Re: [PATCH 3/6] generation number unset

2006-05-04 Thread Colm MacCarthaigh
On Thu, May 04, 2006 at 01:36:54PM -0400, Chris Darroch wrote: >This may not be necessary, but I notice that prefork and most of > the other MPMs set ap_my_generation to an initial value of zero. > The worker and event MPMs don't, though. Yes, we don't have any consistency in the actual code h

[PATCH 4/6] fork() failure handling

2006-05-04 Thread Chris Darroch
Hi -- The prefork MPM sets thread_limit to 1 and therefore each child process has a single worker_score structure in the scoreboard's array, i.e., ap_scoreboard_image->servers[slot][0]. In make_child(), it sets this structure's status to SERVER_STARTING, and then does a fork(); if the fork() f

[PATCH 3/6] generation number unset

2006-05-04 Thread Chris Darroch
Hi -- This may not be necessary, but I notice that prefork and most of the other MPMs set ap_my_generation to an initial value of zero. The worker and event MPMs don't, though. Chris. = --- server/mpm/experimental/event/event

[PATCH 2/6] misleading scoreboard comments

2006-05-04 Thread Chris Darroch
Hi -- These comments were added in r89115 as the first step toward converting the scoreboard from arrays to linked lists. The structure elements added in that revision were then backed out in r89554, but the comments remained. They're rather misleading because obviously worker_score is not de

[PATCH 1/6] scoreboard over-sized

2006-05-04 Thread Chris Darroch
Hi -- It looks to me like the memory allocated for ap_scoreboard_image is a little bit over-sized. In r104404 the lb_score elements were added to the scoreboard in the manner of the worker_score array, and then in r105134 much of this was reversed, but the call to calloc() still sizes ap_score

[PATCH 0/6] mpm and scoreboard fixes

2006-05-04 Thread Chris Darroch
Hi -- I've been working away on PR #39275 and in the process of thinking about that and studying the scoreboard and the various MPMs, I've turned up a few things. Rather than try to jam them all together I've broken out the first set of them and thought I'd start mailing them to the list.

Re: [STATUS] (httpd-2.1) Wed May 3 23:53:24 2006

2006-05-04 Thread Joost de Heer
Could someone change the subject of this status mail?

Re: apr_brigade_insert_file() LFS/Linux issues

2006-05-04 Thread Alexey Toptygin
Sorry, but are you running a 32 bit userland with your 64 bit kernel? If you are, then the compatibility layer is involved, and sendfile is still taking 32 bit values... I think I see a kernel bug here that would cause any count > (2 ** 31 - 1) to get garbled, but only with 32-bit compat mode

Re: apr_brigade_insert_file() LFS/Linux issues

2006-05-04 Thread Joe Orton
On Thu, May 04, 2006 at 01:04:08PM +0200, Niklas Edmundsson wrote: > On Thu, 4 May 2006, Joe Orton wrote: > > >>This was on XFS and on an NFS mount. It should be noted that this > >>works on a 32bit (also Ubuntu Breezy) machine with identical config. > > > >Can you try it on a local ext3 filesyste

Adding my own Handler/Module in Apache

2006-05-04 Thread Tiago Semprebom
Hello, I need to use a handler that intercept all the incoming requests in Apache for that I can change the values of this requests.  I tryed  to create a  new handler called mod_test.c, using the mod_asis structure ( I took the mod_asis ,changed some function name, and saved this new file like mo

Re: svn commit: r399665 - /httpd/httpd/trunk/modules/filters/mod_charset_lite.c

2006-05-04 Thread Jeff Trawick
On 5/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Author: trawick Date: Thu May 4 04:18:45 2006 New Revision: 399665 URL: http://svn.apache.org/viewcvs?rev=399665&view=rev Log: Stop returning DECLINED from the output filter for proxy requests. FWIW, this is a rather obscure codepath. m

Re: Possible new cache architecture

2006-05-04 Thread Brian Akins
Graham Leggett wrote: I think in the long run, a dedicated process is the way to go. I think using a provider architecture would be best and keep complexity out of mod_cache. Some module(s) would implement the necessary cache management functions and mod_cache would push/pull/probe the "man

Re: apr_brigade_insert_file() LFS/Linux issues

2006-05-04 Thread Niklas Edmundsson
On Thu, 4 May 2006, Joe Orton wrote: This was on XFS and on an NFS mount. It should be noted that this works on a 32bit (also Ubuntu Breezy) machine with identical config. Can you try it on a local ext3 filesystem? Same results. if (length < MAX_BUCKET_SIZE) { does that work? It probabl

Re: apr_brigade_insert_file() LFS/Linux issues

2006-05-04 Thread Niklas Edmundsson
On Thu, 4 May 2006, Joe Orton wrote: OK, what filesystem? Colm had reported the same thing on Debian/IA64, which was on an NFS mount, IIRC. If you adjust apr_brigade_insert_file to only allow buckets of MAX_BUCKET_SIZE regardless, i.e. change the conditional to: This was on XFS and on an NFS

Re: Possible new cache architecture

2006-05-04 Thread Plüm , Rüdiger , VF EITO
> -Ursprüngliche Nachricht- > Von: Joe Orton > > > > 1. This is an API change which might be hard to backport. > > 2. I do not really like the close tie between the storage provider > >and the filter chain. It forces the provider to do things it > >should not care about from my p

Re: apr_brigade_insert_file() LFS/Linux issues

2006-05-04 Thread Joe Orton
On Thu, May 04, 2006 at 10:26:56AM +0200, Niklas Edmundsson wrote: > On Thu, 4 May 2006, Joe Orton wrote: > >OK, what filesystem? Colm had reported the same thing on Debian/IA64, > >which was on an NFS mount, IIRC. If you adjust apr_brigade_insert_file > >to only allow buckets of MAX_BUCKET_SIZE

Re: apr_brigade_insert_file() LFS/Linux issues

2006-05-04 Thread Niklas Edmundsson
On Thu, 4 May 2006, Joe Orton wrote: I've run into apr_brigade_insert_file() creating brigades that's not possible to sendfile() (EINVAL), this is with httpd-2.2.2 on Ubuntu Breezy Linux amd64 (64bit). The file in question is 4.3GB, and it seems that sendfile() doesn't cope with that. Has anyon