From 6e59e871bfe821e0925d2f03eb91306acbd11da7 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Wed, 22 Feb 2023 14:41:53 +0100 Subject: [PATCH] MINOR: stream: Dump the task expiration date in trace messages The expiration date of the stream's task is now diplayed in the trace messages. This will help to track changes in the stream traces. --- src/stream.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/stream.c b/src/stream.c index 597043c66..45b24f079 100644 --- a/src/stream.c +++ b/src/stream.c @@ -202,15 +202,16 @@ static void strm_trace(enum trace_level level, uint64_t mask, const struct trace /* If txn defined info about HTTP msgs, otherwise info about SI. */ if (txn) { - chunk_appendf(&trace_buf, " - t=%p s=(%p,0x%08x,0x%x) txn.flags=0x%08x, http.flags=(0x%08x,0x%08x) status=%d", - task, s, s->flags, s->conn_err_type, txn->flags, txn->req.flags, txn->rsp.flags, txn->status); + chunk_appendf(&trace_buf, " - t=%p t.exp=%u s=(%p,0x%08x,0x%x) txn.flags=0x%08x, http.flags=(0x%08x,0x%08x) status=%d", + task, task->expire, s, s->flags, s->conn_err_type, txn->flags, txn->req.flags, txn->rsp.flags, txn->status); } else { - chunk_appendf(&trace_buf, " - t=%p s=(%p,0x%08x,0x%x) scf=(%p,%d,0x%08x,0x%x) scb=(%p,%d,0x%08x,0x%x) scf.exp(r,w)=(%u,%u) scb.exp(r,w)=(%u,%u) retries=%d", - task, s, s->flags, s->conn_err_type, + chunk_appendf(&trace_buf, " - t=%p t.exp=%u s=(%p,0x%08x,0x%x) scf=(%p,%d,0x%08x,0x%x) scb=(%p,%d,0x%08x,0x%x) scf.exp(r,w)=(%u,%u) scb.exp(r,w)=(%u,%u) retries=%d", + task, task->expire, s, s->flags, s->conn_err_type, s->scf, s->scf->state, s->scf->flags, s->scf->sedesc->flags, s->scb, s->scb->state, s->scb->flags, s->scb->sedesc->flags, - sc_ep_rex(s->scf), sc_ep_wex(s->scf), sc_ep_rex(s->scb), sc_ep_wex(s->scb), + sc_ep_rcv_ex(s->scf), sc_ep_snd_ex(s->scf), + sc_ep_rcv_ex(s->scb), sc_ep_snd_ex(s->scb), s->conn_retries); }