Skip to content

Commit

Permalink
[TSVB] Set listener limit to abort signal correctly (#132624)
Browse files Browse the repository at this point in the history
(cherry picked from commit eacbbbd)
  • Loading branch information
flash1293 committed May 30, 2022
1 parent d8941c5 commit 914ff91
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 914ff91

Please sign in to comment.