fieldstat增加sigpipe计数。

This commit is contained in:
zhengchao
2018-10-05 14:34:51 +08:00
parent 7fd3f5d1fb
commit 9ec072343b
7 changed files with 47 additions and 47 deletions

View File

@@ -4,7 +4,6 @@
#include <event2/event.h>
#include <tfe_stream.h>
#include <tfe_stat.h>
#include <tfe_future.h>
#include <proxy.h>
@@ -17,7 +16,6 @@ struct tfe_thread_ctx
struct event_base * evbase;
unsigned char running;
struct tfe_stats stat;
struct cert_mgr * cert_mgr;
unsigned int nr_modules;

View File

@@ -7,6 +7,11 @@
struct ssl_mgr;
struct key_keeper;
struct kni_acceptor;
enum TFE_STAT_FIELD
{
STAT_SIGPIPE,
TFE_STAT_MAX
};
struct tfe_proxy_tcp_options
{
@@ -53,6 +58,11 @@ struct tfe_proxy
/* DEBUG OPTIONS */
unsigned int tcp_all_passthrough;
struct tfe_proxy_tcp_options tcp_options;
/* PERFOMANCE MONIOTR VARIABLES*/
long long stat_val[TFE_STAT_MAX];
int fs_id[TFE_STAT_MAX];
};