summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluqiuwen <[email protected]>2019-09-10 11:53:40 +0800
committer陆秋文 <[email protected]>2019-09-10 11:54:24 +0800
commitd94c397776e8381c360f4c3ef922aa9b2278c76f (patch)
treef2d5c393ec4911c11bb21aa1b66e1c94d254a66c
parent18be5ab07f597760e5d9bb2405aaa37d830d8ef8 (diff)
修正HTTP解析层在上层设置请求/应答后,需要等待源站消息完整后才将上层构建的请求/应答发出的问题。v4.1.0-20190911
* 继续修正,设置请求/应答的初始化状态不为COMPLETE,待应用层设置BODY为NULL再转为COMPLETE,避免应答体提前发出。
-rw-r--r--plugin/protocol/http/src/http_half.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/plugin/protocol/http/src/http_half.cpp b/plugin/protocol/http/src/http_half.cpp
index 8e4d61e..fa133ea 100644
--- a/plugin/protocol/http/src/http_half.cpp
+++ b/plugin/protocol/http/src/http_half.cpp
@@ -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);
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;
}
@@ -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);
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;
}