mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-15 18:17:01 +00:00
DEBUG: mux-h1: Add H1C expiration dates in trace messages
The expiration date of the H1C task and the H1C idle expiration date are now dumped in the trace messages.
This commit is contained in:
parent
976af317a4
commit
9fa5b379fa
@ -416,6 +416,15 @@ static void h1_trace(enum trace_level level, uint64_t mask, const struct trace_s
|
||||
chunk_appendf(&trace_buf, " - h1c=%p(0x%08x)", h1c, h1c->flags);
|
||||
if (h1c->conn)
|
||||
chunk_appendf(&trace_buf, " conn=%p(0x%08x)", h1c->conn, h1c->conn->flags);
|
||||
chunk_appendf(&trace_buf, " .task=%p", h1c->task);
|
||||
if (h1c->task) {
|
||||
chunk_appendf(&trace_buf, " .exp=%s",
|
||||
h1c->task->expire ? tick_is_expired(h1c->task->expire, now_ms) ? "<PAST>" :
|
||||
human_time(TICKS_TO_MS(h1c->task->expire - now_ms), TICKS_TO_MS(1000)) : "<NEVER>");
|
||||
}
|
||||
chunk_appendf(&trace_buf, " .idle_exp=%s",
|
||||
h1c->idle_exp ? tick_is_expired(h1c->idle_exp, now_ms) ? "<PAST>" :
|
||||
human_time(TICKS_TO_MS(h1c->idle_exp - now_ms), TICKS_TO_MS(1000)) : "<NEVER>");
|
||||
if (h1s) {
|
||||
chunk_appendf(&trace_buf, " h1s=%p(0x%08x)", h1s, h1s->flags);
|
||||
if (h1s->sd)
|
||||
|
Loading…
Reference in New Issue
Block a user