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

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


The following commit(s) were added to refs/heads/master by this push:
     new 9850a68a3d Fix cqpv log field value on H3 connections (#9719)
9850a68a3d is described below

commit 9850a68a3d40a15265aa89af9eb7b3ce32fc0960
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Mon May 22 23:44:32 2023 +0900

    Fix cqpv log field value on H3 connections (#9719)
---
 proxy/http3/Http3Session.cc | 8 +++++++-
 proxy/http3/Http3Session.h  | 3 +++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/proxy/http3/Http3Session.cc b/proxy/http3/Http3Session.cc
index ba629201e4..f993887aad 100644
--- a/proxy/http3/Http3Session.cc
+++ b/proxy/http3/Http3Session.cc
@@ -61,7 +61,7 @@ HQSession::remove_transaction(HQTransaction *trans)
 const char *
 HQSession::get_protocol_string() const
 {
-  return this->_protocol_string;
+  return "";
 }
 
 int
@@ -201,6 +201,12 @@ Http3Session::decrement_current_active_connections_stat()
   // TODO Implement stats
 }
 
+const char *
+Http3Session::get_protocol_string() const
+{
+  return "http/3";
+}
+
 QPACK *
 Http3Session::local_qpack()
 {
diff --git a/proxy/http3/Http3Session.h b/proxy/http3/Http3Session.h
index 4d78b27a9f..2245366046 100644
--- a/proxy/http3/Http3Session.h
+++ b/proxy/http3/Http3Session.h
@@ -77,6 +77,9 @@ public:
   void increment_current_active_connections_stat() override;
   void decrement_current_active_connections_stat() override;
 
+  // Implement ProxySession interface
+  const char *get_protocol_string() const override;
+
   QPACK *local_qpack();
   QPACK *remote_qpack();
 

Reply via email to