Close #72 修正在HTTP-REQ/RESP-BEGIN事件执行detach动作时段错误。

This commit is contained in:
Lu Qiuwen
2018-11-07 14:14:03 +08:00
parent 2d02343b50
commit 571f7cd12e
5 changed files with 24 additions and 13 deletions

View File

@@ -134,13 +134,17 @@ struct http_frame_plugin_status * http_frame_current_plugin_status(struct http_f
return ht_frame->calling_plugin_status;
}
struct http_frame_session_ctx * http_frame_raise_session_begin(const struct tfe_stream * stream,
struct tfe_http_session * ht_session, unsigned int thread_id)
struct http_frame_session_ctx * http_frame_alloc()
{
struct http_frame_session_ctx * ht_frame = ALLOC(struct http_frame_session_ctx, 1);
ht_frame->nr_plugin_status = tfe_plugin_total_counts();
ht_frame->plugin_status = ALLOC(struct http_frame_plugin_status, ht_frame->nr_plugin_status);
return ht_frame;
}
int http_frame_raise_session_begin(struct http_frame_session_ctx * ht_frame,
const struct tfe_stream * stream, struct tfe_http_session * ht_session, unsigned int thread_id)
{
unsigned int __for_each_iterator = 0;
unsigned int __plugin_id = 0;
@@ -161,7 +165,7 @@ struct http_frame_session_ctx * http_frame_raise_session_begin(const struct tfe_
/* Clear calling ctx */
ht_frame->calling_plugin = NULL;
ht_frame->calling_plugin_status = NULL;
return ht_frame;
return 0;
};
void http_frame_raise_session_end(struct http_frame_session_ctx * ht_frame, const tfe_stream * stream,