Skip to content

Commit ef0e703

Browse files
authored
Add action & mutex check before triggering pending dns (#12341)
1 parent 7a37f57 commit ef0e703

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/iocore/hostdb/HostDB.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,10 @@ HostDBContinuation::remove_and_trigger_pending_dns()
11651165
}
11661166
EThread *thread = this_ethread();
11671167
while ((c = qq.dequeue())) {
1168+
if (c->action.cancelled || c->mutex == nullptr) {
1169+
continue;
1170+
}
1171+
11681172
// resume all queued HostDBCont in the thread associated with the netvc to avoid nethandler locking issues.
11691173
EThread *affinity_thread = c->getThreadAffinity();
11701174
SCOPED_MUTEX_LOCK(lock, c->mutex, this_ethread());

0 commit comments

Comments
 (0)