We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55abbd7 commit b8a048bCopy full SHA for b8a048b
src/traffic_server/InkAPI.cc
@@ -4527,7 +4527,8 @@ TSContSchedule(TSCont contp, TSHRTime timeout)
4527
4528
EThread *eth = i->getThreadAffinity();
4529
if (eth == nullptr) {
4530
- return nullptr;
+ eth = this_ethread();
4531
+ i->setThreadAffinity(eth);
4532
}
4533
4534
TSAction action;
@@ -4634,7 +4635,8 @@ TSContScheduleEvery(TSCont contp, TSHRTime every /* millisecs */)
4634
4635
4636
4637
4638
4639
+ i->setThreadAffinity(eth));
4640
4641
4642
TSAction action = reinterpret_cast<TSAction>(eth->schedule_every(i, HRTIME_MSECONDS(every)));
0 commit comments