*.修改帧处理方式
*.删除同一流中多ID遍历模式 *.添加函数指针数组管理不同帧回调 *.添加流处理打印
This commit is contained in:
@@ -19,7 +19,7 @@ typedef struct RTLogInit2Data_ {
|
||||
|
||||
char run_log_path[256];
|
||||
|
||||
void *run_log_handle;
|
||||
void *handle;
|
||||
} RTLogInit2Data;
|
||||
|
||||
typedef struct Http2Plugin_{
|
||||
@@ -66,7 +66,7 @@ struct z_stream_st{
|
||||
BrotliEncoderState *brenc_state;
|
||||
};
|
||||
|
||||
RTLogInit2Data *rt_log_data();
|
||||
RTLogInit2Data *logger();
|
||||
|
||||
Http2Plugin *http2_plugin();
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ struct data_t
|
||||
{
|
||||
int gzip;
|
||||
uint8_t flags;
|
||||
ssize_t padlen;
|
||||
struct z_stream_st *inflater;
|
||||
struct z_stream_st *deflate;
|
||||
struct evbuffer * evbuf_body;
|
||||
@@ -42,6 +43,7 @@ struct header_data{
|
||||
|
||||
struct http2_headers{
|
||||
int nvlen;
|
||||
int complete;
|
||||
uint8_t flag;
|
||||
struct header_data *head, *tail;
|
||||
};
|
||||
@@ -59,6 +61,7 @@ struct http2_half_private
|
||||
char * url_storage;
|
||||
struct data_t body;
|
||||
struct http2_headers headers;
|
||||
struct http2_headers promised;
|
||||
|
||||
enum nghttp2_manage_stage body_state;
|
||||
enum nghttp2_manage_stage message_state;
|
||||
@@ -82,7 +85,10 @@ struct h2_stream_data_t{
|
||||
int spd_set;
|
||||
int spd_valid;
|
||||
int rse_set;
|
||||
int set_cnt;
|
||||
int flag_end;
|
||||
int spd_set_cnt;
|
||||
int spd_cnt;
|
||||
tfe_http_event spd_event;
|
||||
|
||||
struct http_frame_session_ctx *frame_ctx;
|
||||
@@ -90,20 +96,16 @@ struct h2_stream_data_t{
|
||||
struct http2_half_private *resp, *pangu_resp;
|
||||
};
|
||||
|
||||
struct h2_run_id
|
||||
{
|
||||
int num;
|
||||
int32_t id[128];
|
||||
};
|
||||
|
||||
struct tfe_session_info_t
|
||||
{
|
||||
TAILQ_HEAD(list_head, h2_stream_data_t) list;
|
||||
|
||||
/* stream type**/
|
||||
int state;
|
||||
int goaway;
|
||||
|
||||
enum tfe_stream_action stream_action;
|
||||
|
||||
unsigned int thread_id;
|
||||
struct h2_run_id h2_id;
|
||||
|
||||
/** for down stream as server */
|
||||
nghttp2_session *as_server;
|
||||
/** for up stream as client*/
|
||||
|
||||
Reference in New Issue
Block a user