Skip to content

Commit 87563cb

Browse files
authored
fix: Configure max backoff and jitter ratio to ensure exponential backoff. (#464)
1 parent a697679 commit 87563cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/sdk/server-node/src/platform/NodeRequests.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ export default class NodeRequests implements platform.Requests {
142142
...eventSourceInitDict,
143143
agent: this.agent,
144144
tlsParams: this.tlsOptions,
145+
maxBackoffMillis: 30 * 1000,
146+
jitterRatio: 0.5,
145147
};
146148
return new LDEventSource(url, expandedOptions);
147149
}

0 commit comments

Comments
 (0)