Re: Buffer Writer Formatting

2018-04-19 Thread Bryan Call
Replacing Debug()/TSDebug() with BufferWriter/bwformat has little benefit. Also, I don’t think adding another formatting interface for strings is something we want to maintain or use. The main downside, with snprintf(), I see reading the examples is having to keep track of the length and posit

Re: txn depth

2018-04-19 Thread Dk Jack
Yeah, I tracked it to the same after looking at how sstc was getting updated. Thanks. > On Apr 19, 2018, at 3:02 PM, Alan Carroll > wrote: > > Look at TSHttpSsnTransactionCount().

Re: txn depth

2018-04-19 Thread Alan Carroll
Look at TSHttpSsnTransactionCount().

Re: txn depth

2018-04-19 Thread Dk Jack
I am interested in the inbound. Is there an api to access it from a module? > On Apr 19, 2018, at 11:57 AM, Alan Carroll > wrote: > > There are two potentially long lived connections, inbound and outbound > (from the ATS point of view). The number of transactions on each are > independent. For

Re: txn depth

2018-04-19 Thread Alan Carroll
There are two potentially long lived connections, inbound and outbound (from the ATS point of view). The number of transactions on each are independent. For outbound connections (upstream, origin server) there is a logging tag, sstc, which counts the number of transactions that have occurred on tha

Re: txn depth

2018-04-19 Thread Dk Jack
Alan, Perhaps I am using the wrong term. Here’s what I mean by transaction depth. On a long living connection, multiple requests/responses can be exchanged. For each request received on a persistent connection the txn depth count is incremented. Bhasker. > On Apr 19, 2018, at 11:23 AM, Alan

Re: txn depth

2018-04-19 Thread Alan Carroll
"Depth"? I don't know what that means. You can use the logging tag `sstc` - https://docs.trafficserver.apache.org/en/latest/admin-guide/logging/formatting.en.html#connections-and-transactions - to get the number of transactions on the outbound connection. On Thu, Apr 19, 2018 at 12:11 PM, Dk Jack

Buffer Writer Formatting

2018-04-19 Thread Alan Carroll
I have several pull requests up currently involving updates to output formatting for BufferWriter. I was asked to provide more detail on the point of these pulls requests. Anyone who is interested can read this document - https://solidwallofcode.github.io/buffer-writer.en.html for that detail.

txn depth

2018-04-19 Thread Dk Jack
Hi, Is it possible to get the transaction depth for an HTTP transaction? Thanks. Dk.