summaryrefslogtreecommitdiff
path: root/plugin/protocol/http/src/http_half.cpp
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2023-12-08 18:12:53 +0800
committerfengweihao <[email protected]>2023-12-08 18:12:53 +0800
commitb801ca9d3b652c9aa494cb3b3fb2e0a5fbe31731 (patch)
tree991624d47cb56565ea2409e43de580d2736cf732 /plugin/protocol/http/src/http_half.cpp
parentf1bf75367902e1e1ad20a96a6ed1aed528f89d6d (diff)
TSG-17840 Proxy适配日志结构变更v4.8.50-20231208
Diffstat (limited to 'plugin/protocol/http/src/http_half.cpp')
-rw-r--r--plugin/protocol/http/src/http_half.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/protocol/http/src/http_half.cpp b/plugin/protocol/http/src/http_half.cpp
index 3d832b4..c58c83e 100644
--- a/plugin/protocol/http/src/http_half.cpp
+++ b/plugin/protocol/http/src/http_half.cpp
@@ -1136,7 +1136,7 @@ struct http_session_private * hs_private_create(struct http_connection_private *
__hs_private->hs_public.req = hf_private_req != NULL ? to_hf_public(hf_private_req) : NULL;
__hs_private->hs_public.resp = hf_private_req != NULL ? to_hf_public(hf_private_resp) : NULL;
__hs_private->hs_public.session_id = hc_private->session_id_counter++;
- __hs_private->hs_public.start_time=time(NULL);
+ gettimeofday(&(__hs_private->hs_public.start_time), NULL);
/* HS-PRIVATE*/
__hs_private->hc_private = hc_private;