Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-12 Thread jean-frederic clere
Ruediger Pluem wrote: On 09/11/2007 06:09 PM, jean-frederic clere wrote: Plüm wrote: -Ursprüngliche Nachricht- Von: jean-frederic clere Gesendet: Montag, 10. September 2007 16:38 An: dev@httpd.apache.org Betreff: Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-12 Thread jean-frederic clere
Ruediger Pluem wrote: On 09/11/2007 10:51 PM, Jim Jagielski wrote: I would also suggest that we keep ap_proxy_lb_workers in proxy_util.c (as it currently is), since even though its not part of the API, other proxy module make have a need for it (and again, keeping the number of changes

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-12 Thread Plüm , Rüdiger , VF-Group
-Ursprüngliche Nachricht- Von: jean-frederic clere Gesendet: Mittwoch, 12. September 2007 10:34 An: dev@httpd.apache.org Betreff: Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h Ruediger Pluem wrote: On 09/11/2007 10:51 PM, Jim Jagielski wrote: I

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-12 Thread jean-frederic clere
Plüm wrote: -Ursprüngliche Nachricht- Von: jean-frederic clere Gesendet: Mittwoch, 12. September 2007 10:34 An: dev@httpd.apache.org Betreff: Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h Ruediger Pluem wrote: On 09/11/2007 10:51 PM, Jim Jagielski wrote

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-12 Thread Plüm , Rüdiger , VF-Group
-Ursprüngliche Nachricht- Von: jean-frederic clere Gesendet: Mittwoch, 12. September 2007 12:15 An: dev@httpd.apache.org Betreff: Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h The check for worker_size is not needed as worker_size is never zero

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-12 Thread jean-frederic clere
Jim Jagielski wrote: On Sep 11, 2007, at 12:44 PM, jean-frederic clere wrote: Jim Jagielski wrote: On Sep 11, 2007, at 12:09 PM, jean-frederic clere wrote: 1. IMHO requires a minor bump. Find a patch that covers all the points you raised below. More comments? Requires a major

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-11 Thread jean-frederic clere
Plüm wrote: -Ursprüngliche Nachricht- Von: jean-frederic clere Gesendet: Montag, 10. September 2007 16:38 An: dev@httpd.apache.org Betreff: Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h Jim Jagielski wrote: On Sep 10, 2007, at 6:37 AM, Plüm, Rüdiger, VF

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-11 Thread Jim Jagielski
On Sep 11, 2007, at 12:09 PM, jean-frederic clere wrote: 1. IMHO requires a minor bump. Find a patch that covers all the points you raised below. More comments? Requires a major bump. Also destroys all those mystical other balancers from working as-is, since they must now be not only

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-11 Thread jean-frederic clere
Jim Jagielski wrote: On Sep 11, 2007, at 12:09 PM, jean-frederic clere wrote: 1. IMHO requires a minor bump. Find a patch that covers all the points you raised below. More comments? Requires a major bump. Also destroys all those mystical other balancers from working as-is, since

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-11 Thread Jim Jagielski
On Sep 11, 2007, at 12:44 PM, jean-frederic clere wrote: Jim Jagielski wrote: On Sep 11, 2007, at 12:09 PM, jean-frederic clere wrote: 1. IMHO requires a minor bump. Find a patch that covers all the points you raised below. More comments? Requires a major bump. Also destroys all

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-11 Thread Jim Jagielski
On Sep 11, 2007, at 12:09 PM, jean-frederic clere wrote: AP_DECLARE(lb_score *) ap_get_scoreboard_lb(int lb_num) { -if (((lb_num 0) || (lb_limit lb_num))) { +char *ptr; +if (((lb_num 0) || (lb_limit lb_num)) || worker_size==0) { return(NULL); /* Out of range */

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-11 Thread Ruediger Pluem
On 09/11/2007 06:09 PM, jean-frederic clere wrote: Plüm wrote: -Ursprüngliche Nachricht- Von: jean-frederic clere Gesendet: Montag, 10. September 2007 16:38 An: dev@httpd.apache.org Betreff: Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h Jim Jagielski wrote

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-11 Thread Ruediger Pluem
On 09/11/2007 06:23 PM, Jim Jagielski wrote: On Sep 11, 2007, at 12:09 PM, jean-frederic clere wrote: 1. IMHO requires a minor bump. Find a patch that covers all the points you raised below. More comments? Requires a major bump. Also destroys all those mystical Curious again. Why

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-11 Thread Jim Jagielski
On Sep 11, 2007, at 4:04 PM, Ruediger Pluem wrote: On 09/11/2007 06:23 PM, Jim Jagielski wrote: On Sep 11, 2007, at 12:09 PM, jean-frederic clere wrote: 1. IMHO requires a minor bump. Find a patch that covers all the points you raised below. More comments? Requires a major bump.

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-11 Thread Jim Jagielski
Why doesn't j-f go ahead and commit the revised patch to trunk and we can address our concerns in the code instead of email :)

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-11 Thread Ruediger Pluem
On 09/11/2007 10:18 PM, Jim Jagielski wrote: On Sep 11, 2007, at 4:04 PM, Ruediger Pluem wrote: On 09/11/2007 06:23 PM, Jim Jagielski wrote: On Sep 11, 2007, at 12:09 PM, jean-frederic clere wrote: 1. IMHO requires a minor bump. Find a patch that covers all the points you raised

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-11 Thread Jim Jagielski
On Sep 11, 2007, at 4:39 PM, Ruediger Pluem wrote: it will fail to compile after the patch, because lb_score is now an incomplete type. So I guess in order to keep it backportable we need to stick with typedef struct lb_score lb_score; struct lb_score { unsigned char data[1024]; };

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-11 Thread Ruediger Pluem
On 09/11/2007 10:51 PM, Jim Jagielski wrote: I would also suggest that we keep ap_proxy_lb_workers in proxy_util.c (as it currently is), since even though its not part of the API, other proxy module make have a need for it (and again, keeping the number of changes to a minimum). +1.

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-11 Thread Jim Jagielski
On Sep 11, 2007, at 5:01 PM, Ruediger Pluem wrote: On 09/11/2007 10:51 PM, Jim Jagielski wrote: I would also suggest that we keep ap_proxy_lb_workers in proxy_util.c (as it currently is), since even though its not part of the API, other proxy module make have a need for it (and again,

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread jean-frederic clere
Jim Jagielski wrote: Ruediger Pluem wrote: Because it was int ap_proxy_lb_workers(void); and not PROXY_DECLARE(int)ap_proxy_lb_workers(void); Yep. Ideally, of course, a design like mod_ssl with the ssl_private.h usage is nice, because there you can expose functions that need to be

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread Plüm , Rüdiger , VF-Group
-Ursprüngliche Nachricht- Von: jean-frederic clere [mailto:[EMAIL PROTECTED] Gesendet: Montag, 10. September 2007 13:23 An: dev@httpd.apache.org Cc: Jim Jagielski Betreff: Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h Plüm wrote: -Ursprüngliche

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread jean-frederic clere
Plüm wrote: -Ursprüngliche Nachricht- Von: jean-frederic clere [mailto:[EMAIL PROTECTED] Gesendet: Montag, 10. September 2007 13:23 An: dev@httpd.apache.org Cc: Jim Jagielski Betreff: Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h Plüm wrote

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread Jim Jagielski
On Sep 10, 2007, at 6:37 AM, Plüm, Rüdiger, VF-Group wrote: For example what about adding: static APR_OPTIONAL_FN_TYPE(ap_proxy_lb_worker_size) *proxy_lb_worker_size; and use a void * in scoreboard and an int for the size? For me this sounds fine, but I would guess that Jim doesn't like the

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread jean-frederic clere
Jim Jagielski wrote: On Sep 10, 2007, at 6:37 AM, Plüm, Rüdiger, VF-Group wrote: For example what about adding: static APR_OPTIONAL_FN_TYPE(ap_proxy_lb_worker_size) *proxy_lb_worker_size; and use a void * in scoreboard and an int for the size? For me this sounds fine, but I would guess

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread Jim Jagielski
On Sep 10, 2007, at 8:24 AM, jean-frederic clere wrote: Jim Jagielski wrote: On Sep 10, 2007, at 6:37 AM, Plüm, Rüdiger, VF-Group wrote: For example what about adding: static APR_OPTIONAL_FN_TYPE(ap_proxy_lb_worker_size) *proxy_lb_worker_size; and use a void * in scoreboard and an int for

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread jean-frederic clere
Jim Jagielski wrote: On Sep 10, 2007, at 8:24 AM, jean-frederic clere wrote: Jim Jagielski wrote: On Sep 10, 2007, at 6:37 AM, Plüm, Rüdiger, VF-Group wrote: For example what about adding: static APR_OPTIONAL_FN_TYPE(ap_proxy_lb_worker_size) *proxy_lb_worker_size; and use a void * in

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread Jim Jagielski
On Sep 10, 2007, at 10:13 AM, jean-frederic clere wrote: Jim Jagielski wrote: I'm not sure what you mean. mod_proxy does, in child_init, the calls to create those scoreboard entries. It does so via ap_proxy_initialize_worker_share(). No matter what, the -s is set to: worker-s =

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread jean-frederic clere
Jim Jagielski wrote: On Sep 10, 2007, at 6:37 AM, Plüm, Rüdiger, VF-Group wrote: For example what about adding: static APR_OPTIONAL_FN_TYPE(ap_proxy_lb_worker_size) *proxy_lb_worker_size; and use a void * in scoreboard and an int for the size? For me this sounds fine, but I would guess

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread Jim Jagielski
On Sep 10, 2007, at 10:37 AM, jean-frederic clere wrote: typedef struct ap_sb_handle_t ap_sb_handle_t; @@ -181,7 +175,7 @@ AP_DECLARE(worker_score *) ap_get_scoreboard_worker(int x, int y); AP_DECLARE(process_score *) ap_get_scoreboard_process(int x); AP_DECLARE(global_score *)

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread Plüm , Rüdiger , VF-Group
-Ursprüngliche Nachricht- Von: jean-frederic clere Gesendet: Montag, 10. September 2007 16:38 An: dev@httpd.apache.org Betreff: Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h Jim Jagielski wrote: On Sep 10, 2007, at 6:37 AM, Plüm, Rüdiger, VF-Group

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread Plüm , Rüdiger , VF-Group
-Ursprüngliche Nachricht- Von: Jim Jagielski Gesendet: Montag, 10. September 2007 16:51 An: dev@httpd.apache.org Betreff: Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h On Sep 10, 2007, at 10:37 AM, jean-frederic clere wrote: typedef struct

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread Jim Jagielski
On Sep 10, 2007, at 11:08 AM, Plüm, Rüdiger, VF-Group wrote: Sorry for being a pain in the neck with this topic :-) :) It just seems that we're spending so much time on something which was envisioned as a quick, logical fix to trunk which could then be backported to 2.2. But it's getting

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread Martin Kraemer
On Mon, Sep 10, 2007 at 05:02:52PM +0200, Plüm, Rüdiger, VF-Group wrote: 1. IMHO requires a minor bump. 2. Why messing around with lb_score any longer? Instead of ... Sorry for stepping in on the discussion -- but Jim has tried to clean the code, JFC has helped providing alternative patches,

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread jean-frederic clere
Plüm wrote: -Ursprüngliche Nachricht- Von: jean-frederic clere Gesendet: Montag, 10. September 2007 16:38 An: dev@httpd.apache.org Betreff: Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h Jim Jagielski wrote: On Sep 10, 2007, at 6:37 AM, Plüm, Rüdiger, VF

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread Jim Jagielski
On Sep 10, 2007, at 12:19 PM, jean-frederic clere wrote: Well that just because I am thinking that the size of proxy_worker_stat could be changed by a balancer, like adding extra bytes to proxy_worker_stat. That is what 'void *context' is designed to do. Be a place where unique data can

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread jean-frederic clere
Jim Jagielski wrote: On Sep 10, 2007, at 12:19 PM, jean-frederic clere wrote: Well that just because I am thinking that the size of proxy_worker_stat could be changed by a balancer, like adding extra bytes to proxy_worker_stat. That is what 'void *context' is designed to do. Be a

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-10 Thread Ruediger Pluem
On 09/10/2007 05:39 PM, Martin Kraemer wrote: On Mon, Sep 10, 2007 at 05:02:52PM +0200, Plüm, Rüdiger, VF-Group wrote: 1. IMHO requires a minor bump. 2. Why messing around with lb_score any longer? Instead of ... Sorry for stepping in on the discussion -- but Jim has tried to clean the

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-09 Thread Jim Jagielski
Of course, the *real* fix is to make the scoreboard and its entire allocation something which is more callable/usable by modules, which is something we talked about several times and is like a major aspect of 3.0. But the current discussion tries to somehow say that lb_score shouldn't know that

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-09 Thread Jim Jagielski
On Sep 7, 2007, at 6:20 PM, Ruediger Pluem wrote: On 09/07/2007 03:03 PM, Jim Jagielski wrote: On Sep 7, 2007, at 6:29 AM, jean-frederic clere wrote: I think I have patched it. Could you try it? Ahh... this is much nicer that my idea of breaking out the data struct defs from the rest

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-09 Thread Ruediger Pluem
On 09/09/2007 07:24 PM, Jim Jagielski wrote: On Sep 7, 2007, at 6:20 PM, Ruediger Pluem wrote: On 09/07/2007 03:03 PM, Jim Jagielski wrote: On Sep 7, 2007, at 6:29 AM, jean-frederic clere wrote: I think I have patched it. Could you try it? Ahh... this is much nicer that my idea

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-09 Thread Jim Jagielski
Ruediger Pluem wrote: Because it was int ap_proxy_lb_workers(void); and not PROXY_DECLARE(int)ap_proxy_lb_workers(void); Yep. Ideally, of course, a design like mod_ssl with the ssl_private.h usage is nice, because there you can expose functions that need to be shared amoung files

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-07 Thread jean-frederic clere
Martin Kraemer wrote: On Fri, Sep 07, 2007 at 10:30:13AM +0200, jean-frederic clere wrote: That is going to break: In mod_proxy.h: int ap_proxy_lb_workers(void); In server/scoreboard.c: +++ static APR_OPTIONAL_FN_TYPE(ap_proxy_lb_workers) *proxy_lb_workers;

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-07 Thread Martin Kraemer
On Fri, Sep 07, 2007 at 10:30:13AM +0200, jean-frederic clere wrote: That is going to break: In mod_proxy.h: int ap_proxy_lb_workers(void); In server/scoreboard.c: +++ static APR_OPTIONAL_FN_TYPE(ap_proxy_lb_workers) *proxy_lb_workers; +++ Yes, it breaks:

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-07 Thread Jim Jagielski
Grrr... I tested with a compile and it worked fine, but I forgot to do a make distclean 1st. Yep. Problem is that we're leaking info in mod_proxy.h that we shouldn't :/ I'll revert until we figure out a better way to do this... On Sep 7, 2007, at 4:30 AM, jean-frederic clere wrote: That is

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-07 Thread Martin Kraemer
On Fri, Sep 07, 2007 at 12:29:05PM +0200, jean-frederic clere wrote: I think I have patched it. Could you try it? Index: modules/proxy/proxy_util.c === ... Yep, thanks, that fixes it for me too. +1 from me. Martin --

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-07 Thread Jim Jagielski
On Sep 7, 2007, at 6:29 AM, jean-frederic clere wrote: I think I have patched it. Could you try it? Ahh... this is much nicer that my idea of breaking out the data struct defs from the rest of mod_proxy.h And its more logical this way as well... Compiles clean... testing now. Too burned

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-07 Thread Jim Jagielski
On Sep 7, 2007, at 5:37 AM, Martin Kraemer wrote: On Fri, Sep 07, 2007 at 10:30:13AM +0200, jean-frederic clere wrote: That is going to break: In mod_proxy.h: int ap_proxy_lb_workers(void); In server/scoreboard.c: +++ static APR_OPTIONAL_FN_TYPE(ap_proxy_lb_workers)

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-07 Thread jean-frederic clere
Martin Kraemer wrote: On Fri, Sep 07, 2007 at 10:30:13AM +0200, jean-frederic clere wrote: That is going to break: In mod_proxy.h: int ap_proxy_lb_workers(void); In server/scoreboard.c: +++ static APR_OPTIONAL_FN_TYPE(ap_proxy_lb_workers) *proxy_lb_workers;

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-07 Thread jean-frederic clere
That is going to break: In mod_proxy.h: int ap_proxy_lb_workers(void); In server/scoreboard.c: +++ static APR_OPTIONAL_FN_TYPE(ap_proxy_lb_workers) *proxy_lb_workers; +++ Cheers Jean-Frederic [EMAIL PROTECTED] wrote: Author: jim Date: Thu Sep 6 06:46:46 2007

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-07 Thread William A. Rowe, Jr.
jean-frederic clere wrote: That is going to break: In mod_proxy.h: int ap_proxy_lb_workers(void); In server/scoreboard.c: +++ static APR_OPTIONAL_FN_TYPE(ap_proxy_lb_workers) *proxy_lb_workers; +++ which is fine - this is trunk. Heaven forbid we backport

Re: svn commit: r573264 - /httpd/httpd/trunk/include/scoreboard.h

2007-09-07 Thread Ruediger Pluem
On 09/07/2007 03:03 PM, Jim Jagielski wrote: On Sep 7, 2007, at 6:29 AM, jean-frederic clere wrote: I think I have patched it. Could you try it? Ahh... this is much nicer that my idea of breaking out the data struct defs from the rest of mod_proxy.h I do not share this view and