summaryrefslogtreecommitdiff
path: root/plugin/protocol/http2/src/http2_stream.cpp
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2019-09-20 17:19:33 +0800
committerfengweihao <[email protected]>2019-09-20 17:19:33 +0800
commitda8784bf5b90c830de67ecd1d49148928452a71a (patch)
tree3ad3b9638c451b3187a872dacc2d893ae7637c9d /plugin/protocol/http2/src/http2_stream.cpp
parent66b892406769c331c11837bc7492817cc370c1fc (diff)
修复HTTP2提前删除应答信息,导致monitor下日志无记录
Diffstat (limited to 'plugin/protocol/http2/src/http2_stream.cpp')
-rw-r--r--plugin/protocol/http2/src/http2_stream.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/plugin/protocol/http2/src/http2_stream.cpp b/plugin/protocol/http2/src/http2_stream.cpp
index d09d135..8e99af4 100644
--- a/plugin/protocol/http2/src/http2_stream.cpp
+++ b/plugin/protocol/http2/src/http2_stream.cpp
@@ -760,7 +760,6 @@ nghttp2_frame_submit_built_resp(struct tfe_h2_stream *h2_stream_info,
if (rv != 0){
return ACTION_FORWARD_DATA;
}
- delete_nv_packet_data(h2_header);
return ACTION_DROP_DATA;
}
@@ -805,7 +804,6 @@ nghttp2_frame_submit_built_req(struct tfe_h2_stream *h2_stream_info,
nghttp2_strerror(stream_id));
return ACTION_FORWARD_DATA;
}
- delete_nv_packet_data(h2_header);
return ACTION_DROP_DATA;
}
@@ -1195,7 +1193,6 @@ nghttp2_submit_header_by_not_modify(struct tfe_h2_stream *h2_stream_info,
printf("Fatal headers error: %s\n", nghttp2_strerror(stream_id));
stream_action = ACTION_FORWARD_DATA;
}
- delete_nv_packet_data(&headers);
if (stream_action == ACTION_DROP_DATA){
xret = nghttp2_session_send(h2_stream_info->as_server);
@@ -1385,7 +1382,6 @@ nghttp2_server_frame_submit_push_promise(struct tfe_h2_stream *h2_stream_info,
}
upstream_create_req(h2_stream_info, h2_stream_info->as_server, peer_h2_stream, stream_id);
/*clean header message **/
- delete_nv_packet_data(headers);
stream_action = ACTION_DROP_DATA;
finish:
return stream_action;
@@ -1482,9 +1478,7 @@ fill_resp_spec_from_handle(struct tfe_h2_half_private *half_private)
return;
}
-int
-nghttp2_write_log(struct tfe_h2_session *h2_session, const char * str_stream_info,
- int dir)
+int nghttp2_write_log(struct tfe_h2_session *h2_session, const char * str_stream_info, int dir)
{
/* Request */
struct tfe_h2_half_private *req = h2_session->req;
@@ -1596,7 +1590,6 @@ nghttp2_server_frame_submit_header(struct tfe_h2_stream *h2_stream_info,
if (xret < 0){
printf("Fatal headers error: %s\n", nghttp2_strerror(xret));
}
- delete_nv_packet_data(headers);
return stream_action;
}
@@ -1780,7 +1773,6 @@ nghttp2_client_frame_submit_header(struct tfe_h2_stream *h2_stream_info,
}
stream_action = ACTION_DROP_DATA;
finish:
- delete_nv_packet_data(headers);
return stream_action;
}