Skip to content

Commit

Permalink
fix: Configure max backoff and jitter ratio to ensure exponential bac…
Browse files Browse the repository at this point in the history
…koff. (#464)
  • Loading branch information
kinyoklion authored May 21, 2024
1 parent a697679 commit 87563cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/sdk/server-node/src/platform/NodeRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ export default class NodeRequests implements platform.Requests {
...eventSourceInitDict,
agent: this.agent,
tlsParams: this.tlsOptions,
maxBackoffMillis: 30 * 1000,
jitterRatio: 0.5,
};
return new LDEventSource(url, expandedOptions);
}
Expand Down

0 comments on commit 87563cb

Please sign in to comment.