ASF Bugzilla – Attachment 19706 Details for
Bug 30730
[PatchAvailable] mod_actions and Server-Status
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
patch30730.txt (text/plain), 2.03 KB, created by
Basant Kumar Kukreja
on 2007-03-13 18:02:01 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Basant Kumar Kukreja
Created:
2007-03-13 18:02:01 UTC
Size:
2.03 KB
patch
obsolete
>Index: server/scoreboard.c >=================================================================== >--- server/scoreboard.c (revision 512953) >+++ server/scoreboard.c (working copy) >@@ -339,6 +339,13 @@ > return (ap_scoreboard_image ? 1 : 0); > } > >+static void increment_bytes(worker_score *ws, request_rec *r) >+{ >+ ws->bytes_served += r->bytes_sent; >+ ws->my_bytes_served += r->bytes_sent; >+ ws->conn_bytes += r->bytes_sent; >+} >+ > AP_DECLARE(void) ap_increment_counts(ap_sb_handle_t *sb, request_rec *r) > { > worker_score *ws; >@@ -351,11 +358,17 @@ > ws->access_count++; > ws->my_access_count++; > ws->conn_count++; >- ws->bytes_served += r->bytes_sent; >- ws->my_bytes_served += r->bytes_sent; >- ws->conn_bytes += r->bytes_sent; >+ increment_bytes(ws, r); > } > >+AP_DECLARE(void) ap_increment_bytes(ap_sb_handle_t *sb, request_rec *r) >+{ >+ worker_score *ws; >+ >+ ws = &ap_scoreboard_image->servers[sb->child_num][sb->thread_num]; >+ increment_bytes(ws, r); >+} >+ > int find_child_by_pid(apr_proc_t *pid) > { > int i; >Index: include/scoreboard.h >=================================================================== >--- include/scoreboard.h (revision 512953) >+++ include/scoreboard.h (working copy) >@@ -173,6 +173,7 @@ > > AP_DECLARE(int) ap_exists_scoreboard_image(void); > AP_DECLARE(void) ap_increment_counts(ap_sb_handle_t *sbh, request_rec *r); >+AP_DECLARE(void) ap_increment_bytes(ap_sb_handle_t *sbh, request_rec *r); > > int ap_create_scoreboard(apr_pool_t *p, ap_scoreboard_e t); > apr_status_t ap_reopen_scoreboard(apr_pool_t *p, apr_shm_t **shm, int detached); >Index: modules/http/http_request.c >=================================================================== >--- modules/http/http_request.c (revision 512953) >+++ modules/http/http_request.c (working copy) >@@ -508,6 +508,9 @@ > return; > } > ap_finalize_request_protocol(new); >+ if (ap_extended_status && new->connection) { >+ ap_increment_bytes(new->connection->sbh, new); >+ } > } > else { > ap_die(access_status, new);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 30730
: 19706 |
19843