Skip to content

Commit 93db900

Browse files
committed
Add TODO for retry jitter and shorter poll interval
1 parent 93d884a commit 93db900

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sentry_retry.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ sentry__retry_free(sentry_retry_t *retry)
6767
uint64_t
6868
sentry__retry_backoff(int count)
6969
{
70+
// TODO: consider adding jitter and shortening the poll interval to spread
71+
// out retries when multiple envelopes (esp. large attachments) pile up.
7072
return (uint64_t)SENTRY_RETRY_INTERVAL << MIN(MAX(count, 0), 5);
7173
}
7274

0 commit comments

Comments
 (0)