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 0d21c0f868 Use NetVC::get_service (#10003)
0d21c0f868 is described below

commit 0d21c0f868bbc0eb61623673fec7c7f62b3880de
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Thu Jul 13 05:55:20 2023 +0900

    Use NetVC::get_service (#10003)
    
    This is a follow-up on #9482. I missed one place on the previous PR.
---
 proxy/http2/Http2ConnectionState.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/proxy/http2/Http2ConnectionState.cc 
b/proxy/http2/Http2ConnectionState.cc
index fb594a9ce3..f99ef6bbf0 100644
--- a/proxy/http2/Http2ConnectionState.cc
+++ b/proxy/http2/Http2ConnectionState.cc
@@ -1100,8 +1100,8 @@ 
Http2ConnectionState::_get_configured_initial_window_size() const
   } else {
     uint32_t initial_window_size_in = Http2::initial_window_size_in;
     if (this->session) {
-      TLSSNISupport *snis = dynamic_cast<TLSSNISupport 
*>(session->get_netvc());
-      if (snis && 
snis->hints_from_sni.http2_initial_window_size_in.has_value()) {
+      if (auto snis = session->get_netvc()->get_service<TLSSNISupport>();
+          snis && 
snis->hints_from_sni.http2_initial_window_size_in.has_value()) {
         initial_window_size_in = 
snis->hints_from_sni.http2_initial_window_size_in.value();
       }
     }

Reply via email to