Skip to content

Commit 81d2e67

Browse files
committed
add a comment
1 parent 1645dc7 commit 81d2e67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/events/src/service/events/reindex.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ export async function reindex(token: TokenWithBearer) {
100100
// Converts object stream to JSON string stream so that it can
101101
// be sent to the country config reindex endpoint
102102
body: new JsonStreamStringify(eventDocumentStreamForCountryConfig),
103+
// Ensure HTTP socket of previous GET /events request is not reused
104+
// to avoid connections being closed preemptively by Node.js
103105
agent: new Agent({ keepAlive: false })
104106
}
105107
).then((response) => {

0 commit comments

Comments
 (0)