Merge pull request #2644 from pikasTech/fix/l1-kafka-sse-cli-cancel
Pipelines as Code CI / hwlab-nc01-v03-ci-poll- Success
Pipelines as Code CI / hwlab-nc01-v03-ci-poll- Success
忽略 SSE 主动清理的连接重置
This commit is contained in:
@@ -71,7 +71,7 @@ async function inspectEvents(parsed: Parsed, env: Record<string, string | undefi
|
||||
const frame = parseSseBlock(block);
|
||||
if (frame) frames.push(frame);
|
||||
if (frames.filter((entry) => entry.name === "hwlab.event.v1").length >= minEvents) {
|
||||
await reader.cancel();
|
||||
await reader.cancel().catch(() => undefined);
|
||||
break readStream;
|
||||
}
|
||||
boundary = buffer.indexOf("\n\n");
|
||||
|
||||
Reference in New Issue
Block a user