You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by "moonchen (via GitHub)" <gi...@apache.org> on 2026/06/15 20:18:01 UTC
[PR] Count decrypted application bytes in net.read_bytes for TLS [trafficserver]
moonchen opened a new pull request, #13275:
URL: https://github.com/apache/trafficserver/pull/13275
For TLS connections proxy.process.net.read_bytes was incremented in
read_raw_data with the raw socket read length -- handshake and record-layer
ciphertext -- while net.write_bytes records plaintext application bytes. The
two counters were therefore asymmetric, and read_bytes did not track a clean
workload signal because it folded ciphertext framing overhead into the count.
Move the read_bytes / read_bytes_count increment into _ssl_read_from_net,
where it counts the decrypted application bytes handed up from SSL_read,
matching write_bytes. read_raw_data still records the socket read through
calls_to_read. Also count each application-data read attempt with
calls_to_read so reads and writes are accounted symmetrically.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Count decrypted application bytes in net.read_bytes for TLS [trafficserver]
Posted by "moonchen (via GitHub)" <gi...@apache.org>.
moonchen closed pull request #13275: Count decrypted application bytes in net.read_bytes for TLS
URL: https://github.com/apache/trafficserver/pull/13275
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org