1.修改nghttp2库中关于ping包处理流程
2.修改调试log信息等级为debug 3.增加http2关于缓存代码控制宏变量 4.测试存在的几个bug修复
This commit is contained in:
@@ -57,12 +57,17 @@ struct http2_half_private
|
||||
|
||||
/* UNDERLAY BUFFER */
|
||||
int method_or_status;
|
||||
int by_stream;
|
||||
|
||||
char * url_storage;
|
||||
struct data_t body;
|
||||
struct http2_headers headers;
|
||||
struct http2_headers promised;
|
||||
|
||||
/*Read Cache**/
|
||||
int32_t stream_id;
|
||||
nghttp2_session *session;
|
||||
|
||||
enum nghttp2_manage_stage body_state;
|
||||
enum nghttp2_manage_stage message_state;
|
||||
|
||||
@@ -75,21 +80,26 @@ struct http2_half_private
|
||||
void (* event_cb_user_deleter)(void *);
|
||||
};
|
||||
|
||||
struct h2_stream_data_t{
|
||||
struct tfe_http_session tfe_session;
|
||||
TAILQ_ENTRY(h2_stream_data_t) next;
|
||||
|
||||
int32_t stream_id;
|
||||
|
||||
struct cache_trapper_t{
|
||||
int spd_set;
|
||||
int spd_valid;
|
||||
int rse_set;
|
||||
int set_cnt;
|
||||
int flag_end;
|
||||
//int set_cnt;
|
||||
//int flag_end;
|
||||
int spd_set_cnt;
|
||||
int spd_cnt;
|
||||
tfe_http_event spd_event;
|
||||
};
|
||||
|
||||
struct h2_stream_data_t{
|
||||
struct tfe_http_session tfe_session;
|
||||
TAILQ_ENTRY(h2_stream_data_t) next;
|
||||
const struct tfe_stream *tf_stream;
|
||||
|
||||
int32_t stream_id;
|
||||
nghttp2_session *session;
|
||||
|
||||
struct cache_trapper_t cache;
|
||||
struct http_frame_session_ctx *frame_ctx;
|
||||
struct http2_half_private *req, *pangu_req;
|
||||
struct http2_half_private *resp, *pangu_resp;
|
||||
@@ -101,6 +111,8 @@ struct tfe_session_info_t
|
||||
|
||||
int goaway;
|
||||
|
||||
int32_t stream_id;
|
||||
|
||||
enum tfe_stream_action stream_action;
|
||||
|
||||
unsigned int thread_id;
|
||||
@@ -136,6 +148,7 @@ struct stream_tap_info_t
|
||||
#define TFE_NGHTTP2_RESPONSE 0x00004000
|
||||
|
||||
#define ACTION_USER_DATA 3
|
||||
#define NGHTTP2_NO_USER_ERROR 0x0e
|
||||
|
||||
static inline const struct http2_half_private *
|
||||
nghttp2_to_half_private(const struct tfe_http_half * half_public)
|
||||
|
||||
Reference in New Issue
Block a user