From 0e287f10e8d821900acfba7d7989c4c6bfbbf3c5 Mon Sep 17 00:00:00 2001 From: Masakazu Kitajo Date: Thu, 18 May 2023 11:07:00 -0600 Subject: [PATCH] Fix cqpv log field value on H3 connections --- 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 ba629201e44..f993887aadc 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 4d78b27a9f4..22453660461 100644 --- a/proxy/http3/Http3Session.h +++ b/proxy/http3/Http3Session.h @@ -77,6 +77,9 @@ class Http3Session : public HQSession 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();