# 修改 http2 googletest
* 原来仅更新了 http2 代码,未更新测试用例,造成测试用例执行时会 coredump。
This commit is contained in:
@@ -1629,7 +1629,11 @@ nghttp2_server_submit_header(struct tfe_h2_stream *h2_stream_info, int32_t strea
|
||||
stream_action = ACTION_DEFER_DATA;
|
||||
goto finish;
|
||||
}
|
||||
nghttp2_write_log(h2_session,h2_stream_info->tf_stream->str_stream_info, CONN_DIR_UPSTREAM);
|
||||
|
||||
// int googletest, h2_stream_info->tf_stream is NULL
|
||||
if (h2_session && h2_stream_info && h2_stream_info->tf_stream) {
|
||||
nghttp2_write_log(h2_session, h2_stream_info->tf_stream->str_stream_info, CONN_DIR_UPSTREAM);
|
||||
}
|
||||
|
||||
stream_action = nghttp2_server_frame_submit_header(h2_stream_info, h2_session);
|
||||
if (stream_action == ACTION_DROP_DATA){
|
||||
@@ -1799,7 +1803,10 @@ nghttp2_client_submit_header(struct tfe_h2_stream *h2_stream_info, int32_t strea
|
||||
|
||||
req->event_cb(req, EV_HTTP_REQ_HDR, NULL, 0, req->event_cb_user);
|
||||
|
||||
nghttp2_write_log(h2_session, h2_stream_info->tf_stream->str_stream_info, CONN_DIR_DOWNSTREAM);
|
||||
// int googletest, h2_stream_info->tf_stream is NULL
|
||||
if (h2_session && h2_stream_info && h2_stream_info->tf_stream) {
|
||||
nghttp2_write_log(h2_session, h2_stream_info->tf_stream->str_stream_info, CONN_DIR_DOWNSTREAM);
|
||||
}
|
||||
stream_action = nghttp2_client_frame_submit_header(h2_stream_info, h2_session);
|
||||
if (stream_action == ACTION_DROP_DATA){
|
||||
xret = nghttp2_session_send(h2_stream_info->as_client);
|
||||
|
||||
Reference in New Issue
Block a user