This is an automated email from the ASF dual-hosted git repository.

sudheerv pushed a commit to branch hrtime
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit f7b8f63428e075a316d1cef9e4bd2f3dbdcb86f1
Author: Sudheer Vinukonda <sudhe...@apache.org>
AuthorDate: Mon Feb 14 13:22:34 2022 -0800

    Make SSL writes more efficient when using dynamic record sizing
    
    Avoid calling clock time during subsequent SSL writes since the clock
    does get updated in the event loop already.
---
 iocore/net/SSLNetVConnection.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iocore/net/SSLNetVConnection.cc b/iocore/net/SSLNetVConnection.cc
index 63b5c33..2523895 100644
--- a/iocore/net/SSLNetVConnection.cc
+++ b/iocore/net/SSLNetVConnection.cc
@@ -773,7 +773,7 @@ SSLNetVConnection::load_buffer_and_write(int64_t towrite, 
MIOBufferAccessor &buf
   // Dynamic TLS record sizing
   ink_hrtime now = 0;
   if (SSLConfigParams::ssl_maxrecord == -1) {
-    now                       = Thread::get_hrtime_updated();
+    now                       = Thread::get_hrtime();
     int msec_since_last_write = ink_hrtime_diff_msec(now, sslLastWriteTime);
 
     if (msec_since_last_write > SSL_DEF_TLS_RECORD_MSEC_THRESHOLD) {

Reply via email to