summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryzc <[email protected]>2020-01-06 18:07:07 +0800
committeryzc <[email protected]>2020-01-06 18:07:07 +0800
commita95d8eb0ee823968535b0f44ef2e7d822dd3e4af (patch)
treeb4d287d5e36ee0cd0f9871bf0e1edee8d7b30343 /src
parentb654753ebd866998a43a141ce0d480c07b88f468 (diff)
返回值修改HEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/http_count.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/http_count.c b/src/http_count.c
index 152f595..d1952b1 100644
--- a/src/http_count.c
+++ b/src/http_count.c
@@ -92,8 +92,7 @@ struct http_count_node * find_hlist_node(uint32_t key, char *buf, uint32_t bufle
if(!strncmp(node->data, buf, buflen))
{
return node;
- }
-
+ }
}
return NULL;
@@ -155,7 +154,7 @@ uint32_t get_hash_key(void *buf, uint32_t buflen)
return (jhash(buf, buflen, 0) % PERSIST_HASH_SIZE);
}
-int http_count_statistics(char *buf, uint32_t buflen)
+void http_count_statistics(char *buf, uint32_t buflen)
{
uint32_t key = 0;
struct http_count_node *node = NULL;
@@ -171,13 +170,13 @@ int http_count_statistics(char *buf, uint32_t buflen)
add_hlist_node(key, buf, buflen);
}
- return 0;
+ return;
}
char http_count_entry(stSessionInfo* session_info, void **param, int thread_seq, struct streaminfo *a_tcp, void *a_packet)
{
if(a_tcp->dir != DOUBLE_DIRECTION)
- return 0;
+ return PROT_STATE_GIVEME;
switch(session_info->prot_flag)
{
@@ -378,5 +377,5 @@ OUT:
MESA_destroy_runtime_log_handle(g_http_count_log_handler);
free_all();
- return ;
+ return;
}