diff options
| author | lijia <[email protected]> | 2024-06-18 16:45:35 +0800 |
|---|---|---|
| committer | lijia <[email protected]> | 2024-06-20 18:51:47 +0800 |
| commit | 05e8c9db6912dc95de9691e9b90e549a4c3beffe (patch) | |
| tree | ed5d4b3392bdd577986d26ac8d5c6da21f9c2b2a /src/http_decoder_stat.h | |
| parent | 7d6170a23027aff0ebf2e7832dc11e4bbdce57ea (diff) | |
feat: TSG-20446, support http tunnel with CONNECT method.
Diffstat (limited to 'src/http_decoder_stat.h')
| -rw-r--r-- | src/http_decoder_stat.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/http_decoder_stat.h b/src/http_decoder_stat.h index 235475d..e8f18d8 100644 --- a/src/http_decoder_stat.h +++ b/src/http_decoder_stat.h @@ -32,25 +32,19 @@ struct hd_stat_config_tuple struct hd_statistics { - // long long incoming_bytes; - // long long incoming_tcp_seg; - // long long session_new; - // long long session_free; - // long long transaction_new; - // long long transaction_free; - // long long incoming_trans; - // long long err_pkts; - + long long time_ms[HTTPD_STAT_MAX]; long long counter[HTTPD_STAT_MAX]; - int batch; //call fieldstat_easy_counter_incrby() per batch + int batch[HTTPD_STAT_MAX]; //call fieldstat_easy_counter_incrby() per batch }__attribute__ ((aligned (64))); struct http_decoder_stat { + pthread_t timer_pid; + long long current_time_ms; struct fieldstat_easy *fse; int stat_interval_pkts; // call fieldstat_incrby every stat_interval_pkts int field_stat_id[HTTPD_STAT_MAX]; - struct hd_statistics *stats; //multi thread + struct hd_statistics *stats; //size is thread number }; int http_decoder_stat_init(struct http_decoder_stat *hd_stat, int thread_max, int stat_interval_pkts, int stat_interval_time); |
