]>
Commit | Line | Data |
---|---|---|
d5b3bc4d JR |
1 | --- mod_vhost_limit-0.2/mod_vhost_limit.c.orig 2007-04-06 19:52:03.000000000 +0200 |
2 | +++ mod_vhost_limit-0.2/mod_vhost_limit.c 2013-05-06 00:18:00.883162004 +0200 | |
3 | @@ -127,6 +127,7 @@ | |
4 | char cut_req_host[31] = ""; | |
5 | const char *req_host; | |
6 | const char *vhost; | |
7 | + ap_generation_t mpm_generation; | |
8 | ||
9 | conf = (vhost_limit_conf *) ap_get_module_config(r->server->module_config,&vhost_limit_module); | |
10 | ||
11 | @@ -144,17 +145,17 @@ | |
12 | ********************************************/ | |
13 | ||
14 | req_host = ap_get_server_name(r); | |
15 | - | |
16 | + ap_mpm_query(AP_MPMQ_GENERATION, &mpm_generation); | |
17 | ||
18 | for (i = 0; i < server_limit; ++i) | |
19 | { | |
20 | for (j = 0; j < thread_limit; ++j) | |
21 | { | |
22 | ps_record = ap_get_scoreboard_process(i); | |
23 | - ws_record = ap_get_scoreboard_worker(i, j); | |
24 | + ws_record = ap_get_scoreboard_worker_from_indexes(i, j); | |
25 | vhost = ws_record->vhost; | |
26 | ||
27 | - if (ps_record->generation != ap_my_generation) | |
28 | + if (ps_record->generation != mpm_generation) | |
29 | vhost = NULL; | |
30 | if (!vhost) | |
31 | continue; |