lb_score and proxy_worker_stat

2007-09-05 Thread Jim Jagielski
apr_optional.h +/* for lb_score */ +#include ../modules/proxy/mod_proxy.h + /* Scoreboard file, if there is one */ #ifndef DEFAULT_SCOREBOARD #define DEFAULT_SCOREBOARD logs/apache_runtime_status @@ -142,11 +145,7 @@ }; /* stuff which is lb specific */ -typedef struct lb_score lb_score; -struct

lb_score

2006-02-14 Thread Jim Jagielski
Off the top of my head, I have no idea why we even have lb_score rather than just using proxy_worker_stat as we should. This is easy to fix except for the fact that ap_get_scoreboard_lb() is AP_DECLARE... Of course, adjusting in HEAD is fine, but this is something that really should be fixed

Re: lb_score

2006-02-14 Thread Nick Kew
On Tuesday 14 February 2006 15:06, Jim Jagielski wrote: Off the top of my head, I have no idea why we even have lb_score Neither have I. Someone slipped it it; noone objected. rather than just using proxy_worker_stat as we should. This is easy to fix except for the fact

AW: lb_score

2006-02-14 Thread Plüm , Rüdiger , VIS
-Ursprüngliche Nachricht- Von: Jim Jagielski Off the top of my head, I have no idea why we even have lb_score rather than just using proxy_worker_stat as we should. This is easy to fix except for the fact that ap_get_scoreboard_lb() is AP_DECLARE... Of course, adjusting

Re: AW: lb_score

2006-02-14 Thread Jim Jagielski
Von: Jim Jagielski=20 =20 =20 Off the top of my head, I have no idea why we even have lb_score rather than just using proxy_worker_stat as we should. This is easy to fix except for the fact that ap_get_scoreboard_lb() is AP_DECLARE... Of course, adjusting in HEAD is fine

AW: lb_score

2006-02-14 Thread Plüm , Rüdiger , VIS
-Ursprüngliche Nachricht- Von: Jim Jagielski That was the reason I added the 'context' struct member, to allow for some reasonable extensions without adjusting the actual API. :) Yes, but it is not possible to share this data over processes easily as it is only a pointer.

Re: lb_score

2006-02-14 Thread Jim Jagielski
Nick Kew wrote: I haven't thought this through yet, but presumably we could implement an API for this. Something like: struct worker_score { /* all the stuff that's there now */ void data[]; /* at the end */ }; /* ditto other records */ :) I did this awhile ago on all the

Re: AW: lb_score

2006-02-14 Thread Jim Jagielski
=?iso-8859-1?Q?Pl=FCm=2C_R=FCdiger=2C_VIS?= wrote: -Urspr=FCngliche Nachricht- Von: Jim Jagielski=20 =20 =20 That was the reason I added the 'context' struct member, to=20 allow for some reasonable extensions without adjusting the=20 actual API. :) Yes, but it is not

AW: AW: lb_score

2006-02-14 Thread Plüm , Rüdiger , VIS
-Ursprüngliche Nachricht- Von: Jim Jagielski Yes, but it is not possible to share this data over processes easily as it is only a pointer. But it could be a pointer to a shared memory segment :) Yes of course, but I have to write more code to manage this than for an

Re: lb_score

2006-02-14 Thread Bill Stoddard
Jim Jagielski wrote: Nick Kew wrote: I haven't thought this through yet, but presumably we could implement an API for this. Something like: struct worker_score { /* all the stuff that's there now */ void data[]; /* at the end */ }; /* ditto other records */ :) I did this awhile

Re: AW: AW: lb_score

2006-02-14 Thread Jim Jagielski
=?iso-8859-1?Q?Pl=FCm=2C_R=FCdiger=2C_VIS?= wrote: -Urspr=FCngliche Nachricht- Von: Jim Jagielski=20 =20 Yes, but it is not possible to share this data over=20 processes easily=20 as it is only a pointer. =20 But it could be a pointer to a shared memory segment :)