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

cmcfarlen pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit e2b7f2c6f27274fb55744c91c785350fd70056a5
Author: Brian Neradt <[email protected]>
AuthorDate: Mon May 20 17:30:33 2024 -0500

    Handle VC_EVENT_EOS in more places (#11368)
    
    This adds the handling of VC_EVENT_EOS to a few handlers that did handle 
VC_EVENT_ERROR but not EOS. This is a follow up from a review comment in 
#11346. See:
    
    #11346 (comment)
    
    (cherry picked from commit abc4d5d3419a615e95b9c0775bef9c5f7d25042d)
---
 src/iocore/net/QUICNextProtocolAccept.cc | 1 +
 src/iocore/net/SSLNextProtocolAccept.cc  | 1 +
 src/proxy/http/HttpSM.cc                 | 1 +
 3 files changed, 3 insertions(+)

diff --git a/src/iocore/net/QUICNextProtocolAccept.cc 
b/src/iocore/net/QUICNextProtocolAccept.cc
index 867480fb38..1ece9d017c 100644
--- a/src/iocore/net/QUICNextProtocolAccept.cc
+++ b/src/iocore/net/QUICNextProtocolAccept.cc
@@ -37,6 +37,7 @@ quic_netvc_cast(int event, void *edata)
     return dynamic_cast<QUICNetVConnection *>(ptr.vc);
   case VC_EVENT_INACTIVITY_TIMEOUT:
   case VC_EVENT_READ_COMPLETE:
+  case VC_EVENT_EOS:
   case VC_EVENT_ERROR:
     ptr.vio = static_cast<VIO *>(edata);
     return dynamic_cast<QUICNetVConnection *>(ptr.vio->vc_server);
diff --git a/src/iocore/net/SSLNextProtocolAccept.cc 
b/src/iocore/net/SSLNextProtocolAccept.cc
index 6055b76655..2f73efbdcc 100644
--- a/src/iocore/net/SSLNextProtocolAccept.cc
+++ b/src/iocore/net/SSLNextProtocolAccept.cc
@@ -49,6 +49,7 @@ ssl_netvc_cast(int event, void *edata)
     return dynamic_cast<SSLNetVConnection *>(ptr.vc);
   case VC_EVENT_INACTIVITY_TIMEOUT:
   case VC_EVENT_READ_COMPLETE:
+  case VC_EVENT_EOS:
   case VC_EVENT_ERROR:
     ptr.vio = static_cast<VIO *>(edata);
     return dynamic_cast<SSLNetVConnection *>(ptr.vio->vc_server);
diff --git a/src/proxy/http/HttpSM.cc b/src/proxy/http/HttpSM.cc
index c548ea17f6..cb7f880d2d 100644
--- a/src/proxy/http/HttpSM.cc
+++ b/src/proxy/http/HttpSM.cc
@@ -1225,6 +1225,7 @@ 
HttpSM::state_common_wait_for_transform_read(HttpTransformInfo *t_info, HttpSMHa
     }
   // FALLTHROUGH
   case VC_EVENT_ERROR:
+  case VC_EVENT_EOS:
   case VC_EVENT_INACTIVITY_TIMEOUT:
     // Transform VC sends NULL on error conditions
     if (!c) {

Reply via email to