Skip to content

Commit 9da8454

Browse files
authored
Fix possible crashes on OCSP request timeout (#12982)
* Fix possible crashes on OCSP request timeout * Acquire lock in do_io_shutdown
1 parent d81de6c commit 9da8454

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/proxy/FetchSM.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ FetchSM::cleanUp()
6161
}
6262

6363
if (http_vc) {
64+
http_vc->do_io_shutdown(IO_SHUTDOWN_READWRITE);
6465
http_vc->do_io_close();
6566
}
6667
free_MIOBuffer(req_buffer);

src/proxy/PluginVC.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ PluginVC::do_io_shutdown(ShutdownHowTo_t howto)
397397
ink_assert(!closed);
398398
ink_assert(magic == PluginVCMagic_t::ALIVE);
399399

400+
SCOPED_MUTEX_LOCK(lock, mutex, this_ethread());
401+
400402
switch (howto) {
401403
case IO_SHUTDOWN_READ:
402404
read_state.shutdown = true;

0 commit comments

Comments
 (0)