*.修改帧处理方式

*.删除同一流中多ID遍历模式
*.添加函数指针数组管理不同帧回调
*.添加流处理打印
This commit is contained in:
fengweihao
2019-03-29 15:37:18 +08:00
committed by zhengchao
parent fcde7bfbf3
commit ad004b29a6
8 changed files with 1655 additions and 1236 deletions

View File

@@ -236,9 +236,9 @@ TEST(Http2StreamParser, GetFrameWithHeader_02)
EXPECT_GT(readlen, 0);
/*Send data message**/
enum tfe_stream_action stream_action = ACTION_FORWARD_DATA;
stream_action = nghttp2_client_mem_send(session_info);
EXPECT_EQ(stream_action, ACTION_DROP_DATA);
//enum tfe_stream_action stream_action = ACTION_FORWARD_DATA;
//stream_action = nghttp2_client_mem_send(session_info);
//EXPECT_EQ(stream_action, ACTION_DROP_DATA);
}
TEST(Http2StreamParser, RespFrameWithHead_01)
@@ -261,9 +261,9 @@ TEST(Http2StreamParser, RespFrameWithHead_01)
EXPECT_GT(readlen, 0);
/*Send data head message**/
enum tfe_stream_action stream_action = ACTION_FORWARD_DATA;
stream_action = nghttp2_client_mem_send(session_info);
EXPECT_EQ(stream_action, ACTION_DROP_DATA);
//enum tfe_stream_action stream_action = ACTION_FORWARD_DATA;
//stream_action = nghttp2_client_mem_send(session_info);
//EXPECT_EQ(stream_action, ACTION_DROP_DATA);
/*Recv response settings*/
readlen = nghttp2_session_mem_recv(session_info->as_client, response_settings, sizeof(response_settings));