修正HTTP解析层在上层设置请求/应答后,需要等待源站消息完整后才将上层构建的请求/应答发出的问题。

* 继续修正,设置请求/应答的初始化状态不为COMPLETE,待应用层设置BODY为NULL再转为COMPLETE,避免应答体提前发出。
This commit is contained in:
luqiuwen
2019-09-10 11:53:40 +08:00
committed by 陆秋文
parent 18be5ab07f
commit d94c397776

View File

@@ -938,7 +938,6 @@ void hs_ops_request_set(struct tfe_http_session * session, struct tfe_http_half
assert(hs_private->hf_private_req_user == NULL); assert(hs_private->hf_private_req_user == NULL);
hs_private->hf_private_req_user = hf_user_private; hs_private->hf_private_req_user = hf_user_private;
hs_private->hf_private_req_user->message_status = STATUS_COMPLETE;
hs_private->hf_private_req_user->session = hs_private; hs_private->hf_private_req_user->session = hs_private;
} }
@@ -972,7 +971,6 @@ void hs_ops_response_set(struct tfe_http_session * session, struct tfe_http_half
assert(hs_private->hf_private_resp_user == NULL); assert(hs_private->hf_private_resp_user == NULL);
hs_private->hf_private_resp_user = hf_private; hs_private->hf_private_resp_user = hf_private;
hs_private->hf_private_resp_user->message_status = STATUS_COMPLETE;
hs_private->hf_private_resp_user->session = hs_private; hs_private->hf_private_resp_user->session = hs_private;
} }