Lines 343-348
Link Here
|
343 |
*/ |
343 |
*/ |
344 |
extern APR_OPTIONAL_FN_TYPE(ap_logio_add_bytes_out) *logio_add_bytes_out; |
344 |
extern APR_OPTIONAL_FN_TYPE(ap_logio_add_bytes_out) *logio_add_bytes_out; |
345 |
|
345 |
|
|
|
346 |
AP_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(int,add_bytes_out,(conn_rec *c, apr_off_t bytes), c, bytes, OK, DECLINES); |
347 |
|
346 |
apr_status_t ap_core_output_filter(ap_filter_t *f, apr_bucket_brigade *new_bb) |
348 |
apr_status_t ap_core_output_filter(ap_filter_t *f, apr_bucket_brigade *new_bb) |
347 |
{ |
349 |
{ |
348 |
conn_rec *c = f->c; |
350 |
conn_rec *c = f->c; |
Lines 721-729
Link Here
|
721 |
break; |
723 |
break; |
722 |
} |
724 |
} |
723 |
} |
725 |
} |
724 |
if ((logio_add_bytes_out != NULL) && (bytes_written > 0)) { |
726 |
if (bytes_written > 0) { |
725 |
logio_add_bytes_out(c, bytes_written); |
727 |
if (logio_add_bytes_out != NULL) logio_add_bytes_out(c, bytes_written); |
|
|
728 |
ap_run_add_bytes_out(c, bytes_written); |
726 |
} |
729 |
} |
|
|
730 |
|
727 |
*cumulative_bytes_written += bytes_written; |
731 |
*cumulative_bytes_written += bytes_written; |
728 |
|
732 |
|
729 |
arv = apr_socket_timeout_set(s, old_timeout); |
733 |
arv = apr_socket_timeout_set(s, old_timeout); |
Lines 783-790
Link Here
|
783 |
rv = arv; |
787 |
rv = arv; |
784 |
} |
788 |
} |
785 |
} |
789 |
} |
786 |
if ((logio_add_bytes_out != NULL) && (bytes_written > 0)) { |
790 |
if (bytes_written > 0) { |
787 |
logio_add_bytes_out(c, bytes_written); |
791 |
if (logio_add_bytes_out != NULL) logio_add_bytes_out(c, bytes_written); |
|
|
792 |
ap_run_add_bytes_out(c, bytes_written); |
788 |
} |
793 |
} |
789 |
*cumulative_bytes_written += bytes_written; |
794 |
*cumulative_bytes_written += bytes_written; |
790 |
if ((bytes_written < file_length) && (bytes_written > 0)) { |
795 |
if ((bytes_written < file_length) && (bytes_written > 0)) { |