diff options
| author | lishu <[email protected]> | 2019-07-04 16:38:50 +0800 |
|---|---|---|
| committer | lishu <[email protected]> | 2019-07-04 16:38:50 +0800 |
| commit | b15605d793855cad3e00ffef089181ee7283a3d1 (patch) | |
| tree | 1c46e39c91f7eadba99f50ac282fafaddf1ca5e9 /src/HTTP_Message.c | |
| parent | 3b46bc23958fc8b9cad333dc1185ce9484795ee6 (diff) | |
add cmake
Diffstat (limited to 'src/HTTP_Message.c')
| -rw-r--r-- | src/HTTP_Message.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/HTTP_Message.c b/src/HTTP_Message.c index 3aa9b4f..8586657 100644 --- a/src/HTTP_Message.c +++ b/src/HTTP_Message.c @@ -14,7 +14,7 @@ #include "MESA_htable.h" #include "field_stat.h" -static int g_iThreadNum = get_thread_count(); +static int g_iThreadNum = 1; extern http_prog_runtime_parameter_t g_http_prog_para; extern string_map_t g_http_regions[]; extern const char* g_http_method[]; @@ -136,7 +136,8 @@ long long http_region2proto_flag(const char *region, uint32 region_len) /*http content......*/ else { - for(int i=0;i<g_http_prog_para.http_region_cnt;i++) + int i=0; + for(i=0;i<g_http_prog_para.http_region_cnt;i++) { if(0==strcasecmp(g_http_prog_para.http_conf_regionname[i], region)) { @@ -267,7 +268,8 @@ int http_readMainConf(const char* filename) } int HTTP_INIT(void) -{ +{ + g_iThreadNum = get_thread_count(); memset(&g_http_prog_para,0,sizeof(http_prog_runtime_parameter_t)); if(0!=http_readMainConf("./conf/http/http_main.conf")) { |
