tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 5a60efba238780ca12318a6a5ccf3a36f453d6ab
parent 992c76764688cf7c6a9a1db487a77ef1328d9b43
Author: Steven Engler <opara@torproject.org>
Date:   Mon, 29 Sep 2025 21:59:39 -0400

flow-ctrl: improve log line

Diffstat:
Msrc/core/or/congestion_control_flow.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/core/or/congestion_control_flow.c b/src/core/or/congestion_control_flow.c @@ -496,8 +496,11 @@ flow_control_decide_xoff(edge_connection_t *stream) stream->xoff_grace_period_start_usec = now; } else if (now > stream->xoff_grace_period_start_usec + XOFF_GRACE_PERIOD_USEC) { /* If we've exceeded our XOFF grace period, we need to send an XOFF. */ - log_info(LD_EDGE, "Sending XOFF: %"TOR_PRIuSZ" %d", - total_buffered, buffer_limit_xoff); + log_info(LD_EDGE, + "Sending XOFF: total-buffered=%" TOR_PRIuSZ + " xoff-limit=%d grace-period-dur=%" TOR_PRIuSZ "usec", + total_buffered, buffer_limit_xoff, + now - stream->xoff_grace_period_start_usec); tor_trace(TR_SUBSYS(cc), TR_EV(flow_decide_xoff_sending), stream); cc_stats_flow_xoff_outbuf_ma =