Skip to content

Commit

Permalink
IfwApiCheckTask: Process final cr in the global thread pool
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Sep 5, 2024
1 parent 4f5a915 commit e24511d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/methods/ifwapichecktask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ static void DoIfwNetIo(
sslConn.async_shutdown(yc[ec]);
}

CpuBoundWork cbw (yc);
Value jsonRoot;

try {
Expand Down Expand Up @@ -471,7 +470,10 @@ void IfwApiCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckRes
DoIfwNetIo(yc, cr, psCommand, psHost, expectedSan, psPort, *conn, *req);

cr->SetExecutionEnd(Utility::GetTime());
reportResult();

// Post the check result processing to the global pool not to block the I/O threads,
// which could affect processing important RPC messages and HTTP connections.
Utility::QueueAsyncCallback(reportResult);
}
);
}

0 comments on commit e24511d

Please sign in to comment.