Skip to content

Commit

Permalink
[TSVB] Set listener limit to abort signal correctly (#132624) (#133139)
Browse files Browse the repository at this point in the history
(cherry picked from commit eacbbbd)

Co-authored-by: Joe Reuter <[email protected]>
  • Loading branch information
kibanamachine and flash1293 authored May 30, 2022
1 parent b301800 commit c170da4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ export abstract class AbstractSearchStrategy {
) {
const requests: any[] = [];

// User may abort the request without waiting for the results
// we need to handle this scenario by aborting underlying server requests
const abortSignal = getRequestAbortedSignal(req.events.aborted$);
const searchContext = await requestContext.search;

esRequests.forEach(({ body, index, trackingEsSearchMeta }) => {
// User may abort the request without waiting for the results
// we need to handle this scenario by aborting underlying server requests
const abortSignal = getRequestAbortedSignal(req.events.aborted$);
const startTime = Date.now();
requests.push(
searchContext
Expand Down

0 comments on commit c170da4

Please sign in to comment.