Close #72 修正在HTTP-REQ/RESP-BEGIN事件执行detach动作时段错误。
This commit is contained in:
@@ -298,13 +298,10 @@ static int __on_request_prepare_context(const struct tfe_stream * stream, unsign
|
||||
hf_private_set_callback(hf_private_req_in, __user_event_dispatch, __closure, free);
|
||||
|
||||
/* Call business plugin */
|
||||
hs_private->ht_frame = http_frame_raise_session_begin(stream, &hs_private->hs_public, thread_id);
|
||||
if (hs_private->ht_frame == NULL)
|
||||
{
|
||||
TFE_STREAM_LOG_ERROR(stream, "Failed at raising session begin event. ");
|
||||
return -1;
|
||||
}
|
||||
hs_private->ht_frame = http_frame_alloc();
|
||||
assert(hs_private->ht_frame != NULL);
|
||||
|
||||
http_frame_raise_session_begin(hs_private->ht_frame, stream, &hs_private->hs_public, thread_id);
|
||||
TAILQ_INSERT_TAIL(&hc_private->hs_private_list, hs_private, next);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user