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 9da84544f0 Fix possible crashes on OCSP request timeout (#12982)
9da84544f0 is described below

commit 9da84544f092122b209de6236112ac2810cbddde
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Tue Mar 24 17:44:14 2026 -0600

    Fix possible crashes on OCSP request timeout (#12982)
    
    * Fix possible crashes on OCSP request timeout
    
    * Acquire lock in do_io_shutdown
---
 src/proxy/FetchSM.cc  | 1 +
 src/proxy/PluginVC.cc | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/src/proxy/FetchSM.cc b/src/proxy/FetchSM.cc
index 66b800fd6a..11fef0f849 100644
--- a/src/proxy/FetchSM.cc
+++ b/src/proxy/FetchSM.cc
@@ -61,6 +61,7 @@ FetchSM::cleanUp()
   }
 
   if (http_vc) {
+    http_vc->do_io_shutdown(IO_SHUTDOWN_READWRITE);
     http_vc->do_io_close();
   }
   free_MIOBuffer(req_buffer);
diff --git a/src/proxy/PluginVC.cc b/src/proxy/PluginVC.cc
index ab9d684aa6..3caa8dc673 100644
--- a/src/proxy/PluginVC.cc
+++ b/src/proxy/PluginVC.cc
@@ -397,6 +397,8 @@ PluginVC::do_io_shutdown(ShutdownHowTo_t howto)
   ink_assert(!closed);
   ink_assert(magic == PluginVCMagic_t::ALIVE);
 
+  SCOPED_MUTEX_LOCK(lock, mutex, this_ethread());
+
   switch (howto) {
   case IO_SHUTDOWN_READ:
     read_state.shutdown = true;

Reply via email to