This is an automated email from the ASF dual-hosted git repository. cmcfarlen pushed a commit to branch 10.2.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit a978a9257e17811f9791e93c39ae30b05fd498e8 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 (cherry picked from commit 9da84544f092122b209de6236112ac2810cbddde) --- 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;
