Skip to content

panic on large number of retries #1548

@ocallaco

Description

@ocallaco

https://github.com/go-redis/redis/blob/38caa12762e776c4637ad9697805c2e9a2e3dbb4/internal/internal.go#L17

this shift will make d a negative duration when the number of retries is high (around 35 for min backoff of 100ms), which will cause a panic when passed to Int63n

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions