diff options
| author | fengweihao <[email protected]> | 2023-12-08 18:12:53 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2023-12-08 18:12:53 +0800 |
| commit | b801ca9d3b652c9aa494cb3b3fb2e0a5fbe31731 (patch) | |
| tree | 991624d47cb56565ea2409e43de580d2736cf732 /plugin/protocol | |
| parent | f1bf75367902e1e1ad20a96a6ed1aed528f89d6d (diff) | |
TSG-17840 Proxy适配日志结构变更v4.8.50-20231208
Diffstat (limited to 'plugin/protocol')
| -rw-r--r-- | plugin/protocol/http/src/http_half.cpp | 2 | ||||
| -rw-r--r-- | plugin/protocol/http2/src/http2_stream.cpp | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/plugin/protocol/http2/src/http2_stream.cpp b/plugin/protocol/http2/src/http2_stream.cpp index 13e37e8..15f32fa 100644 --- a/plugin/protocol/http2/src/http2_stream.cpp +++ b/plugin/protocol/http2/src/http2_stream.cpp @@ -1270,7 +1270,7 @@ static int tfe_half_session_init(struct tfe_h2_session *h2_session, int32_t stre struct tfe_h2_half_private *req = h2_session->req; tfe_session->ops = &http2_session_ops; tfe_session->req = &req->half_public; - tfe_session->start_time=time(NULL); + gettimeofday(&tfe_session->start_time, NULL); tfe_session->session_id = stream_id; } |
