Adjust benchmark directory,enable HTTP test,rename variables,format codes

This commit is contained in:
lijia
2024-08-16 14:58:19 +08:00
parent cd2a2360fe
commit 3cdfabb683
153 changed files with 1064 additions and 4415 deletions

View File

@@ -2,7 +2,7 @@
#include <stdio.h>
#include <string.h>
#include <arpa/inet.h>
#include "http_decoder_inc.h"
#include "http_decoder_private.h"
#include "llhttp.h"
#include "uthash/utlist.h"
@@ -85,8 +85,7 @@ void http_half_decompress_buffer_free(struct http_decoder_half_data *data, hstri
struct http_decompress_buffer *el, *tmp;
DL_FOREACH_SAFE(data->decompress_buffer_list, el, tmp)
{
if (el->iov.iov_base == decompress_body->iov_base
&& el->iov.iov_len == decompress_body->iov_len)
if (el->iov.iov_base == decompress_body->iov_base && el->iov.iov_len == decompress_body->iov_len)
{
DL_DELETE(data->decompress_buffer_list, el);
if (el->iov.iov_base)
@@ -157,7 +156,7 @@ static void http_decoder_half_data_decompress(struct http_decoder_half_data *dat
return;
}
if(local_outdata!= NULL && local_outdata_len > 0)
if (local_outdata != NULL && local_outdata_len > 0)
{
struct http_decompress_buffer *decompress_buffer = CALLOC(struct http_decompress_buffer, 1);
assert(decompress_buffer);
@@ -873,7 +872,7 @@ static void http_decoder_half_decompress_buf_free(struct http_decoder_half_data
if (el->iov.iov_base != NULL)
{
FREE(el->iov.iov_base);
}
}
FREE(el);
}
ref_data->decompress_buffer_list = NULL;
@@ -1208,7 +1207,7 @@ void http_half_get_max_transaction_seq(struct http_decoder_exdata *exdata, long
enum http_content_encoding http_half_data_get_content_encoding(struct http_decoder_half_data *hf_data)
{
if(NULL == hf_data)
if (NULL == hf_data)
{
return HTTP_CONTENT_ENCODING_NONE;
}